00:10
igitoor has quit [Ping timeout: 250 seconds]
00:10
igitoor_ has joined #ocaml
00:15
igitoor_ has quit [Changing host]
00:15
igitoor_ has joined #ocaml
00:15
igitoor_ is now known as igitoor
00:25
ziyourenxiang has joined #ocaml
00:42
smasta has quit [Ping timeout: 250 seconds]
01:12
zolk3ri has quit [Remote host closed the connection]
01:17
lopex has quit [Quit: Connection closed for inactivity]
01:20
smasta has joined #ocaml
01:33
erkin has joined #ocaml
01:44
cobreadmonster has joined #ocaml
01:53
smasta has quit [Ping timeout: 252 seconds]
01:57
silver_ has quit [Read error: Connection reset by peer]
02:01
lizzin has quit [Ping timeout: 272 seconds]
02:18
freusque has joined #ocaml
02:41
xbanana has joined #ocaml
02:41
<
xbanana >
anyone around with some cycles want to help a n00b understand lexers and parsers?
02:45
<
xbanana >
thats fine, ill be around for awhile
02:53
mfp has quit [Ping timeout: 245 seconds]
02:58
JimmyRcom has quit [Ping timeout: 240 seconds]
03:02
tormen_ has joined #ocaml
03:05
tormen has quit [Ping timeout: 252 seconds]
03:11
MadcapJake has joined #ocaml
03:21
pierpal has quit [Read error: Connection reset by peer]
03:30
freusque has quit [Quit: WeeChat 2.0]
03:46
pierpal has joined #ocaml
03:48
pierpal has quit [Read error: Connection reset by peer]
03:49
pierpal has joined #ocaml
03:49
erkin has quit [Remote host closed the connection]
03:53
pierpal has quit [Ping timeout: 240 seconds]
04:03
MadcapJake has quit [Quit: MadcapJake]
04:07
al-damiri has quit [Quit: Connection closed for inactivity]
04:23
caente has quit [Ping timeout: 250 seconds]
04:30
smasta has joined #ocaml
04:30
jao has quit [Ping timeout: 250 seconds]
04:33
JimmyRcom has joined #ocaml
04:53
smasta has quit [Ping timeout: 240 seconds]
04:58
JimmyRcom has quit [Ping timeout: 240 seconds]
05:04
cobreadmonster has quit [Quit: Connection closed for inactivity]
06:32
smasta has joined #ocaml
06:40
kvda has joined #ocaml
06:49
smasta has quit [Ping timeout: 244 seconds]
06:55
xbanana has quit [Quit: Connection closed for inactivity]
07:04
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:04
smasta has joined #ocaml
07:10
smasta has quit [Ping timeout: 272 seconds]
07:18
kvda has joined #ocaml
07:39
orbifx1 has joined #ocaml
07:44
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:47
ShalokShalom_ has joined #ocaml
07:47
<
Fardale >
Drup: can you give example ?
07:49
<
Fardale >
For example to parse 2 integers separate by a space
07:50
Haudegen has joined #ocaml
07:50
sagotch has joined #ocaml
07:50
Rosslaew has joined #ocaml
07:51
<
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
07:53
<
Rosslaew >
(obviously it works only if your string is exactly that but you get the idea)
07:53
orbifx1 has quit [Ping timeout: 268 seconds]
08:01
kvda has joined #ocaml
08:01
ShalokShalom_ has joined #ocaml
08:39
ggole has joined #ocaml
09:02
jaar has joined #ocaml
09:13
magic_gum[m] has quit [Remote host closed the connection]
09:13
isaachodes[m] has quit [Remote host closed the connection]
09:13
srenatus[m] has quit [Read error: Connection reset by peer]
09:13
bglm[m] has quit [Read error: Connection reset by peer]
09:13
Haudegen[m] has quit [Write error: Connection reset by peer]
09:13
aspiwack[m] has quit [Remote host closed the connection]
09:13
jimt[m] has quit [Remote host closed the connection]
09:13
yetanotherion[m] has quit [Remote host closed the connection]
09:13
peddie1 has quit [Read error: Connection reset by peer]
09:13
rgr[m] has quit [Remote host closed the connection]
09:13
equalunique[m] has quit [Write error: Connection reset by peer]
09:13
copy` has quit [Remote host closed the connection]
09:13
spectrumgomas[m] has quit [Write error: Connection reset by peer]
09:13
Walter[m] has quit [Remote host closed the connection]
09:13
gideonsmeding[m] has quit [Remote host closed the connection]
09:13
hdurer[m] has quit [Remote host closed the connection]
09:13
Bluddy[m] has quit [Read error: Connection reset by peer]
09:13
regnat[m]1 has quit [Read error: Connection reset by peer]
09:13
dl3br[m] has quit [Write error: Connection reset by peer]
09:13
flux[m] has quit [Remote host closed the connection]
09:13
drsmkl[m] has quit [Remote host closed the connection]
09:13
Multiocracy[m] has quit [Write error: Connection reset by peer]
09:13
h11[m] has quit [Write error: Connection reset by peer]
09:13
smondet[m] has quit [Write error: Connection reset by peer]
09:13
remix2000[m] has quit [Write error: Connection reset by peer]
09:16
Geekingfrog has quit [Ping timeout: 252 seconds]
09:18
Geekingfrog has joined #ocaml
09:21
aspiwack[m] has joined #ocaml
09:47
mfp has joined #ocaml
09:55
equalunique[m] has joined #ocaml
09:55
Haudegen[m] has joined #ocaml
09:55
drsmkl[m] has joined #ocaml
09:55
copy` has joined #ocaml
09:55
bglm[m] has joined #ocaml
09:55
dl3br[m] has joined #ocaml
09:55
smondet[m] has joined #ocaml
09:55
flux[m] has joined #ocaml
09:55
srenatus[m] has joined #ocaml
09:55
yetanotherion[m] has joined #ocaml
09:55
peddie1 has joined #ocaml
09:55
hdurer[m] has joined #ocaml
09:55
Multiocracy[m] has joined #ocaml
09:55
spectrumgomas[m] has joined #ocaml
09:55
remix2000[m] has joined #ocaml
09:55
jimt[m] has joined #ocaml
09:55
h11[m] has joined #ocaml
09:55
Bluddy[m] has joined #ocaml
09:55
isaachodes[m] has joined #ocaml
09:55
regnat[m] has joined #ocaml
09:55
rgr[m] has joined #ocaml
09:55
Walter[m] has joined #ocaml
09:55
gideonsmeding[m] has joined #ocaml
09:55
magic_gum[m] has joined #ocaml
09:59
lopex has joined #ocaml
10:13
jbrown has quit [Ping timeout: 264 seconds]
10:16
Rosslaew has quit [Remote host closed the connection]
10:17
Rosslaew has joined #ocaml
10:21
tane has joined #ocaml
10:25
jbrown has joined #ocaml
10:32
sagotch has quit [Ping timeout: 252 seconds]
10:32
sagotch has joined #ocaml
10:37
plett6 has joined #ocaml
10:37
plett6 has quit [Remote host closed the connection]
10:51
rotsix has joined #ocaml
11:03
ygrek has joined #ocaml
11:04
Rosslaew has quit [Remote host closed the connection]
11:04
Rosslaew has joined #ocaml
11:08
lizzin has joined #ocaml
11:08
lizzin is now known as Guest71298
11:17
manas has joined #ocaml
11:18
cuvius has joined #ocaml
11:21
andre_ has joined #ocaml
11:22
andre_ is now known as Guest15799
11:22
_andre has quit [Remote host closed the connection]
12:08
Guest71298 has quit [Quit: leaving]
12:15
rwmjones has quit [Ping timeout: 250 seconds]
12:18
rwmjones has joined #ocaml
12:22
jaar has quit [Ping timeout: 264 seconds]
12:34
silver has joined #ocaml
12:37
zolk3ri has joined #ocaml
12:39
zolk3ri has quit [Client Quit]
12:49
jao has joined #ocaml
12:50
kvda has quit [Ping timeout: 252 seconds]
12:51
jbrown has quit [Ping timeout: 252 seconds]
12:58
ShalokShalom_ has joined #ocaml
13:06
Haudegen has quit [Remote host closed the connection]
13:14
CcxWrk has quit [Ping timeout: 244 seconds]
13:23
\malex\18 has joined #ocaml
13:24
\malex\18 has quit [Remote host closed the connection]
13:28
cuvius has quit [Quit: Connection closed for inactivity]
13:29
spew has joined #ocaml
13:31
jbrown has joined #ocaml
13:42
Rosslaew_ has joined #ocaml
13:43
troydm has quit [Ping timeout: 252 seconds]
13:44
Rosslaew has quit [Ping timeout: 264 seconds]
13:47
theglass has joined #ocaml
13:47
theglass has joined #ocaml
13:49
rwmjones has joined #ocaml
13:59
CcxWrk has joined #ocaml
13:59
JimmyRcom has joined #ocaml
14:02
CcxWrk has quit [Excess Flood]
14:04
CcxWrk has joined #ocaml
14:06
Rosslaew_ has quit [Ping timeout: 252 seconds]
14:10
Jesin has quit [Quit: Leaving]
14:20
troydm has joined #ocaml
14:25
smasta has joined #ocaml
14:25
rotsix has quit [Remote host closed the connection]
14:26
CcxWrk has joined #ocaml
14:32
Guest52299 has joined #ocaml
14:32
CcxWrk has quit [Max SendQ exceeded]
14:33
CcxWrk has joined #ocaml
14:34
CcxWrk has quit [Excess Flood]
14:44
JimmyRcom has quit [Ping timeout: 244 seconds]
14:45
Bronsa has joined #ocaml
15:02
xbanana has joined #ocaml
15:03
<
xbanana >
good day everyone! anyone have a few cycles and help a n00b understand how to utilize lexers and parers? (completed and considered working)
15:04
Guest52299 has quit [Remote host closed the connection]
15:07
al-damiri has joined #ocaml
15:07
emias has quit [Ping timeout: 245 seconds]
15:15
<
octachron >
xbanana, do you have any specific questions?
15:18
<
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.
15:18
<
xbanana >
Unfortunately for me i have 0 ocaml experience but am experienced enough to grok
15:18
<
xbanana >
Im attempting to interface/use a lexer and parser in my own programs.
15:21
emias has joined #ocaml
15:21
<
Leonidas >
xbanana: it is hard to help you because you don't formulate a question
15:22
<
Leonidas >
like, what are you trying to do?
15:22
<
Leonidas >
Do you know what parsers and lexers to?
15:22
<
Leonidas >
It is hard to help you if we don't even know your level :-)
15:22
<
xbanana >
oh i get it
15:22
<
xbanana >
its hard to explain when youre out of your depths
15:22
<
xbanana >
im attempting to generate a AST from a source code file
15:23
<
xbanana >
i have a parser and the lexer, just dont know how to "execute/use" them otherwise
15:23
<
Leonidas >
oh, pragprog will be publishing a Webdev with OCaml 4.02 book.
15:24
<
octachron >
xbanana, which kind of parser/lexer?
15:24
<
Leonidas >
xbanana: well, usually the lexer will emit some stream of tokens that the parser will then use and construct an AST
15:24
<
Leonidas >
xbanana: so do you have a lexer already?
15:27
<
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
15:27
bartholin has joined #ocaml
15:31
<
xbanana >
i was pointed to this as something that would spit out an AST for me, but im out of my depth
15:33
<
octachron >
What is your issues with your last link?
15:35
<
octachron >
In general, parser generated with menhir(/ocamlyacc) generates one parsing function by entry point
15:36
<
octachron >
in your case, this means: exps, types, stmts_term, ...
15:37
<
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
15:42
<
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"
15:49
<
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.
15:49
<
xbanana >
But to your last point, there is a FrontEndParser.mli file which looks like it calls the lexer (Lexing.lexbuf -> ...)
15:49
<
xbanana >
is this more inline with how i need to execute any desired parsing functions?
15:50
<
xbanana >
thank you for your time and cycles, i understand the difficulty in working with someone who cannot properly express their needs
15:54
<
xbanana >
ahhhhhhhhh parts are starting to make sense, if i stare at this long enough
16:10
ggole has quit [Quit: ggole]
16:13
ziyourenxiang has quit [Ping timeout: 268 seconds]
16:29
Mayoi has joined #ocaml
16:34
Bronsa has quit [Remote host closed the connection]
16:34
erkin has joined #ocaml
16:35
Mayoi has quit [Quit: Ouch! Got SIGIRL, dying...]
16:48
smasta has quit [Ping timeout: 252 seconds]
16:48
erkin has quit [Quit: Ouch! Got SIGIRL, dying...]
16:48
erkin has joined #ocaml
16:50
erkin has quit [Remote host closed the connection]
16:50
erkin has joined #ocaml
16:57
smasta has joined #ocaml
17:10
ski has quit [Ping timeout: 246 seconds]
17:16
jbrown has quit [Ping timeout: 268 seconds]
17:20
smasta has quit [Ping timeout: 240 seconds]
17:21
smasta has joined #ocaml
17:38
groovy2shoes has quit [Quit: moritura te salutat]
17:43
smasta has quit [Ping timeout: 245 seconds]
17:44
smasta has joined #ocaml
17:49
ski has joined #ocaml
17:50
jnavila has joined #ocaml
17:53
smasta has quit [Ping timeout: 260 seconds]
17:55
groovy2shoes has joined #ocaml
18:01
fraxamo has joined #ocaml
18:06
djellemah has joined #ocaml
18:09
kakadu has quit [Quit: Konversation terminated!]
18:11
jnavila has quit [Ping timeout: 246 seconds]
18:18
jnavila has joined #ocaml
18:19
smasta has joined #ocaml
18:22
sagotch has quit [Quit: Leaving.]
18:55
jnavila has quit [Ping timeout: 252 seconds]
18:56
freusque has joined #ocaml
18:57
ygrek has quit [Ping timeout: 272 seconds]
19:03
jnavila has joined #ocaml
19:07
jnavila has quit [Ping timeout: 246 seconds]
19:08
smasta has quit [Ping timeout: 252 seconds]
19:09
freusque has quit [Quit: WeeChat 2.0]
19:12
smasta has joined #ocaml
19:20
smasta has quit [Ping timeout: 260 seconds]
19:23
smasta has joined #ocaml
19:39
freusque has joined #ocaml
19:41
kakadu has joined #ocaml
19:46
jnavila has joined #ocaml
19:54
smasta has quit [Ping timeout: 240 seconds]
19:56
carlosdagos has quit [Quit: Connection closed for inactivity]
20:09
fraxamo has quit [Quit: Leaving]
20:36
maarhart has joined #ocaml
20:43
tane has quit [Quit: Leaving]
21:07
aminechikhaoui25 has joined #ocaml
21:07
aminechikhaoui25 has quit [Remote host closed the connection]
21:15
freusque has quit [Quit: WeeChat 2.0]
21:17
Guest15799 has quit [Quit: Lost terminal]
21:24
zolk3ri has joined #ocaml
21:25
Guest46014 has joined #ocaml
21:33
Guest46014 has quit [Remote host closed the connection]
21:41
Guest12814 has joined #ocaml
21:42
metreo has joined #ocaml
21:50
metreo has quit [Remote host closed the connection]
21:53
jnavila has quit [Remote host closed the connection]
22:02
JO89-Peter has joined #ocaml
22:06
zolk3ri has quit [Ping timeout: 256 seconds]
22:06
metreo has joined #ocaml
22:07
<
metreo >
Ocaml is up for selection, not much experience using it however
22:08
Guest12814 has quit [Remote host closed the connection]
22:09
Haudegen has joined #ocaml
22:15
zolk3ri has joined #ocaml
22:29
<
companion_cube >
what's Stan?
22:31
<
metreo >
statistical inference algorithm software
22:32
kvda has joined #ocaml
22:36
kakadu has quit [Remote host closed the connection]
22:36
JO89-Peter has quit [Quit: Leaving]
22:40
smasta has joined #ocaml
22:46
orbifx1 has joined #ocaml
22:58
spew has quit [Quit: Connection closed for inactivity]
22:59
demonimin has quit [Ping timeout: 250 seconds]
23:02
bartholin has quit [Remote host closed the connection]
23:03
demonimin has joined #ocaml
23:08
gral has joined #ocaml
23:09
<
gral >
Is there an Ocaml book which goes over both imperative and functional data structures and algorithms?
23:22
orbifx1 has quit [Ping timeout: 252 seconds]
23:26
JimmyRcom has joined #ocaml
23:32
al-damiri has quit [Quit: Connection closed for inactivity]