adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
igitoor has quit [Ping timeout: 250 seconds]
igitoor_ has joined #ocaml
igitoor_ has quit [Changing host]
igitoor_ has joined #ocaml
igitoor_ is now known as igitoor
ziyourenxiang has joined #ocaml
smasta has quit [Ping timeout: 250 seconds]
zolk3ri has quit [Remote host closed the connection]
lopex has quit [Quit: Connection closed for inactivity]
smasta has joined #ocaml
erkin has joined #ocaml
cobreadmonster has joined #ocaml
smasta has quit [Ping timeout: 252 seconds]
silver_ has quit [Read error: Connection reset by peer]
lizzin has quit [Ping timeout: 272 seconds]
freusque has joined #ocaml
xbanana has joined #ocaml
<xbanana> anyone around with some cycles want to help a n00b understand lexers and parsers?
<xbanana> thats fine, ill be around for awhile
mfp has quit [Ping timeout: 245 seconds]
JimmyRcom has quit [Ping timeout: 240 seconds]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 252 seconds]
MadcapJake has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
freusque has quit [Quit: WeeChat 2.0]
ShalokShalom_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
erkin has quit [Remote host closed the connection]
pierpal has quit [Ping timeout: 240 seconds]
MadcapJake has quit [Quit: MadcapJake]
al-damiri has quit [Quit: Connection closed for inactivity]
caente has quit [Ping timeout: 250 seconds]
smasta has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
JimmyRcom has joined #ocaml
smasta has quit [Ping timeout: 240 seconds]
JimmyRcom has quit [Ping timeout: 240 seconds]
cobreadmonster has quit [Quit: Connection closed for inactivity]
smasta has joined #ocaml
kvda has joined #ocaml
smasta has quit [Ping timeout: 244 seconds]
xbanana has quit [Quit: Connection closed for inactivity]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smasta has joined #ocaml
smasta has quit [Ping timeout: 272 seconds]
kvda has joined #ocaml
orbifx1 has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShalokShalom_ has joined #ocaml
<Fardale> Drup: can you give example ?
<Fardale> For example to parse 2 integers separate by a space
Haudegen has joined #ocaml
sagotch has joined #ocaml
Rosslaew has joined #ocaml
<Rosslaew> I do not know what is best but you could e.g. use my_str |> String.split_on_char ' ' |> List.map int_of_string
<Rosslaew> (obviously it works only if your string is exactly that but you get the idea)
orbifx1 has quit [Ping timeout: 268 seconds]
ShalokShalom_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
kvda has joined #ocaml
ShalokShalom_ has joined #ocaml
ggole has joined #ocaml
jaar has joined #ocaml
magic_gum[m] has quit [Remote host closed the connection]
isaachodes[m] has quit [Remote host closed the connection]
srenatus[m] has quit [Read error: Connection reset by peer]
bglm[m] has quit [Read error: Connection reset by peer]
Haudegen[m] has quit [Write error: Connection reset by peer]
aspiwack[m] has quit [Remote host closed the connection]
jimt[m] has quit [Remote host closed the connection]
yetanotherion[m] has quit [Remote host closed the connection]
peddie1 has quit [Read error: Connection reset by peer]
rgr[m] has quit [Remote host closed the connection]
equalunique[m] has quit [Write error: Connection reset by peer]
copy` has quit [Remote host closed the connection]
spectrumgomas[m] has quit [Write error: Connection reset by peer]
Walter[m] has quit [Remote host closed the connection]
gideonsmeding[m] has quit [Remote host closed the connection]
hdurer[m] has quit [Remote host closed the connection]
Bluddy[m] has quit [Read error: Connection reset by peer]
regnat[m]1 has quit [Read error: Connection reset by peer]
dl3br[m] has quit [Write error: Connection reset by peer]
flux[m] has quit [Remote host closed the connection]
drsmkl[m] has quit [Remote host closed the connection]
Multiocracy[m] has quit [Write error: Connection reset by peer]
h11[m] has quit [Write error: Connection reset by peer]
smondet[m] has quit [Write error: Connection reset by peer]
remix2000[m] has quit [Write error: Connection reset by peer]
Geekingfrog has quit [Ping timeout: 252 seconds]
Geekingfrog has joined #ocaml
aspiwack[m] has joined #ocaml
mfp has joined #ocaml
equalunique[m] has joined #ocaml
Haudegen[m] has joined #ocaml
drsmkl[m] has joined #ocaml
copy` has joined #ocaml
bglm[m] has joined #ocaml
dl3br[m] has joined #ocaml
smondet[m] has joined #ocaml
flux[m] has joined #ocaml
srenatus[m] has joined #ocaml
yetanotherion[m] has joined #ocaml
peddie1 has joined #ocaml
hdurer[m] has joined #ocaml
Multiocracy[m] has joined #ocaml
spectrumgomas[m] has joined #ocaml
remix2000[m] has joined #ocaml
jimt[m] has joined #ocaml
h11[m] has joined #ocaml
Bluddy[m] has joined #ocaml
isaachodes[m] has joined #ocaml
regnat[m] has joined #ocaml
rgr[m] has joined #ocaml
Walter[m] has joined #ocaml
gideonsmeding[m] has joined #ocaml
magic_gum[m] has joined #ocaml
lopex has joined #ocaml
jbrown has quit [Ping timeout: 264 seconds]
Rosslaew has quit [Remote host closed the connection]
Rosslaew has joined #ocaml
tane has joined #ocaml
jbrown has joined #ocaml
sagotch has quit [Ping timeout: 252 seconds]
sagotch has joined #ocaml
plett6 has joined #ocaml
plett6 has quit [Remote host closed the connection]
rotsix has joined #ocaml
ygrek has joined #ocaml
ShalokShalom_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Rosslaew has quit [Remote host closed the connection]
Rosslaew has joined #ocaml
lizzin has joined #ocaml
lizzin is now known as Guest71298
manas has joined #ocaml
cuvius has joined #ocaml
andre_ has joined #ocaml
andre_ is now known as Guest15799
_andre has quit [Remote host closed the connection]
Guest71298 has quit [Quit: leaving]
rwmjones has quit [Ping timeout: 250 seconds]
rwmjones has joined #ocaml
jaar has quit [Ping timeout: 264 seconds]
silver has joined #ocaml
zolk3ri has joined #ocaml
zolk3ri has quit [Client Quit]
jao has joined #ocaml
kvda has quit [Ping timeout: 252 seconds]
jbrown has quit [Ping timeout: 252 seconds]
ShalokShalom_ has joined #ocaml
Haudegen has quit [Remote host closed the connection]
CcxWrk has quit [Ping timeout: 244 seconds]
\malex\18 has joined #ocaml
\malex\18 has quit [Remote host closed the connection]
cuvius has quit [Quit: Connection closed for inactivity]
spew has joined #ocaml
jbrown has joined #ocaml
Rosslaew_ has joined #ocaml
troydm has quit [Ping timeout: 252 seconds]
Rosslaew has quit [Ping timeout: 264 seconds]
theglass has quit [Quit: ZNC - http://znc.in]
theglass has joined #ocaml
theglass has joined #ocaml
rwmjones has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rwmjones has joined #ocaml
CcxWrk has joined #ocaml
JimmyRcom has joined #ocaml
CcxWrk has quit [Excess Flood]
CcxWrk has joined #ocaml
Rosslaew_ has quit [Ping timeout: 252 seconds]
Jesin has quit [Quit: Leaving]
manas has quit []
troydm has joined #ocaml
CcxWrk has quit [Quit: ZNC 1.7.1 - https://znc.in]
smasta has joined #ocaml
rotsix has quit [Remote host closed the connection]
CcxWrk has joined #ocaml
Guest52299 has joined #ocaml
CcxWrk has quit [Max SendQ exceeded]
CcxWrk has joined #ocaml
CcxWrk has quit [Excess Flood]
JimmyRcom has quit [Ping timeout: 244 seconds]
Bronsa has joined #ocaml
xbanana has joined #ocaml
<xbanana> good day everyone! anyone have a few cycles and help a n00b understand how to utilize lexers and parers? (completed and considered working)
Guest52299 has quit [Remote host closed the connection]
al-damiri has joined #ocaml
emias has quit [Ping timeout: 245 seconds]
<octachron> xbanana, do you have any specific questions?
<xbanana> octachron: thanks for replying. turns out one of my other messages out for assistance got back to me. the root of my issue is utilizing various ML files from a 3rd party repo.
<xbanana> Unfortunately for me i have 0 ocaml experience but am experienced enough to grok
<xbanana> Im attempting to interface/use a lexer and parser in my own programs.
emias has joined #ocaml
<Leonidas> xbanana: it is hard to help you because you don't formulate a question
<Leonidas> like, what are you trying to do?
<Leonidas> Do you know what parsers and lexers to?
<xbanana> yep
<Leonidas> It is hard to help you if we don't even know your level :-)
<xbanana> oh i get it
<xbanana> its hard to explain when youre out of your depths
<xbanana> im attempting to generate a AST from a source code file
<xbanana> i have a parser and the lexer, just dont know how to "execute/use" them otherwise
<Leonidas> oh, pragprog will be publishing a Webdev with OCaml 4.02 book.
<octachron> xbanana, which kind of parser/lexer?
<Leonidas> xbanana: well, usually the lexer will emit some stream of tokens that the parser will then use and construct an AST
<Leonidas> xbanana: so do you have a lexer already?
<octachron> xbanana, could you link to the repo that you are trying to use? Guessing the API of some unknown 3rd party parser is a bit hard
bartholin has joined #ocaml
<xbanana> i was pointed to this as something that would spit out an AST for me, but im out of my depth
<octachron> What is your issues with your last link?
<octachron> In general, parser generated with menhir(/ocamlyacc) generates one parsing function by entry point
<octachron> in your case, this means: exps, types, stmts_term, ...
<octachron> Those functions take as arguments a lexer function and lexing buffer (often called lexbuf). Here you only have ScillaLexer.read as a lexer function; but in general there is one lexer function generated by rule in the ocamllex file
<octachron> Thus parsing a source file is done in two steps: first, the lexing buffer is intialized with `Lexing.from_{string,channel,...}`, then the parser function is called with "parser lexer lexbuf"
<xbanana> octachron: my general issue, is that i dont know what im reading, and im out of my depth when it comes to how ocaml functions as a language.
<xbanana> But to your last point, there is a FrontEndParser.mli file which looks like it calls the lexer (Lexing.lexbuf -> ...)
<xbanana> is this more inline with how i need to execute any desired parsing functions?
<xbanana> thank you for your time and cycles, i understand the difficulty in working with someone who cannot properly express their needs
<xbanana> ahhhhhhhhh parts are starting to make sense, if i stare at this long enough
ggole has quit [Quit: ggole]
ziyourenxiang has quit [Ping timeout: 268 seconds]
Mayoi has joined #ocaml
Bronsa has quit [Remote host closed the connection]
erkin has joined #ocaml
Mayoi has quit [Quit: Ouch! Got SIGIRL, dying...]
smasta has quit [Ping timeout: 252 seconds]
erkin has quit [Quit: Ouch! Got SIGIRL, dying...]
erkin has joined #ocaml
erkin has quit [Remote host closed the connection]
erkin has joined #ocaml
smasta has joined #ocaml
ski has quit [Ping timeout: 246 seconds]
jbrown has quit [Ping timeout: 268 seconds]
smasta has quit [Ping timeout: 240 seconds]
smasta has joined #ocaml
groovy2shoes has quit [Quit: moritura te salutat]
smasta has quit [Ping timeout: 245 seconds]
smasta has joined #ocaml
ski has joined #ocaml
jnavila has joined #ocaml
smasta has quit [Ping timeout: 260 seconds]
groovy2shoes has joined #ocaml
fraxamo has joined #ocaml
djellemah has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
jnavila has quit [Ping timeout: 246 seconds]
jnavila has joined #ocaml
smasta has joined #ocaml
sagotch has quit [Quit: Leaving.]
jnavila has quit [Ping timeout: 252 seconds]
freusque has joined #ocaml
ygrek has quit [Ping timeout: 272 seconds]
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
smasta has quit [Ping timeout: 252 seconds]
freusque has quit [Quit: WeeChat 2.0]
smasta has joined #ocaml
smasta has quit [Ping timeout: 260 seconds]
smasta has joined #ocaml
freusque has joined #ocaml
kakadu has joined #ocaml
jnavila has joined #ocaml
ShalokShalom_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
smasta has quit [Ping timeout: 240 seconds]
carlosdagos has quit [Quit: Connection closed for inactivity]
fraxamo has quit [Quit: Leaving]
maarhart has joined #ocaml
tane has quit [Quit: Leaving]
maarhart has quit [Quit: Mutter: www.mutterirc.com]
aminechikhaoui25 has joined #ocaml
aminechikhaoui25 has quit [Remote host closed the connection]
freusque has quit [Quit: WeeChat 2.0]
Guest15799 has quit [Quit: Lost terminal]
zolk3ri has joined #ocaml
Guest46014 has joined #ocaml
Guest46014 has quit [Remote host closed the connection]
Guest12814 has joined #ocaml
metreo has joined #ocaml
metreo has quit [Remote host closed the connection]
jnavila has quit [Remote host closed the connection]
JO89-Peter has joined #ocaml
zolk3ri has quit [Ping timeout: 256 seconds]
metreo has joined #ocaml
<metreo> Ocaml is up for selection, not much experience using it however
Guest12814 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
zolk3ri has joined #ocaml
<companion_cube> what's Stan?
<metreo> statistical inference algorithm software
kvda has joined #ocaml
kakadu has quit [Remote host closed the connection]
JO89-Peter has quit [Quit: Leaving]
smasta has joined #ocaml
orbifx1 has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
demonimin has quit [Ping timeout: 250 seconds]
bartholin has quit [Remote host closed the connection]
demonimin has joined #ocaml
gral has joined #ocaml
<gral> Is there an Ocaml book which goes over both imperative and functional data structures and algorithms?
orbifx1 has quit [Ping timeout: 252 seconds]
JimmyRcom has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]