<joelr1>
i, basically, have expr and "expr SHARES" and want my parser to tell them apart
<joelr1>
jlouis: i've been trying to use menhir since i can't use ocamlyacc but i think it hardly matters
<jlouis>
or a combinator-parser?
<jlouis>
I think parsers are kind of black magic to most
<joelr1>
jlouis: a combinator parser won't have a problem with this so long as it has a "try" op, where the parser state is reset if a combinator failed
<jlouis>
if that will comfort you ;)
<joelr1>
jlouis: not really but i do have a sense of humor :D
<joelr1>
oh, well
<jlouis>
don't you just shuffle in some precedence?
<jlouis>
to solve the possible S/R conflict
<jlouis>
or is it a R/R conflict?
<lucca>
joelr1: this doesn't look right
<joelr1>
dunno jlouis
<lucca>
if you already have expr: LP expr RP as you describe
<joelr1>
lucca: why not?
<joelr1>
yes, basically i could have written LP expr RP SHARES instead
<lucca>
then you'll have a RR conflict there
<joelr1>
for clarity
mikeX has quit [Read error: 110 (Connection timed out)]
<joelr1>
the syntax of the language is like that
<joelr1>
so it looks like i need to resort to parser combinators
<joelr1>
unless... unless i can fix my lexer/menhir integration
<joelr1>
the way this used to work is quite simple
<joelr1>
i used to have a string expression for the name and a numerical expression for shares
<joelr1>
presto, no conflict
<joelr1>
this required the lexer to return a different token once a declared variable was found
bobl_ has joined #ocaml
<bobl_>
I passed two c-object files to ocamlopt, and the second one cannot find the symbols of the first one, is that to be expected?
benny_ has joined #ocaml
tsuyoshi has quit ["Lost terminal"]
bobl_ has quit ["Leaving"]
joelr1 has quit []
benny has quit [Read error: 110 (Connection timed out)]
david_koontz has joined #ocaml
jlouis_ has joined #ocaml
tsuyoshi has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
as has joined #ocaml
as is now known as gene9
gene9 has quit ["Meritocracy"]
nuncanada has joined #ocaml
postalchris has quit ["Leaving."]
fezsentido has quit [Read error: 110 (Connection timed out)]
skal has quit [Read error: 104 (Connection reset by peer)]
rickardg has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has quit [Remote closed the connection]
Smerdyakov has joined #ocaml
smimou has quit ["bli"]
screwt8 has quit [Read error: 104 (Connection reset by peer)]