JosephRivers has quit [Remote closed the connection]
khaladan_ has joined #ocaml
khaladan- has joined #ocaml
pango__ has joined #ocaml
khaladan has quit [Connection timed out]
khaladan- is now known as khaladan
khaladan_ has quit [Read error: 110 (Connection timed out)]
mikeX has quit [""zzz""]
gim has quit []
pango_ has quit [Read error: 110 (Connection timed out)]
pango__ is now known as pango
naerbnic has joined #ocaml
naerbnic has quit [Client Quit]
rillig has quit ["exit(EXIT_SUCCESS)"]
sieni has joined #ocaml
bluestorm has joined #ocaml
Smerdyakov has quit ["Leaving"]
slipstream has joined #ocaml
slipstream-- has quit [Read error: 110 (Connection timed out)]
<Amorphous>
hi. i have this user that gets a crash with mldonkey (ocaml app that uses some c/c++ libs). i don't realy understand the backtrace it produces. can someone tell me where the crash occurs? is that somewhere in the standard lib / runtime from ocaml? https://savannah.nongnu.org/bugs/?func=detailitem&item_id=9138#comment47
<Amorphous>
pango: you didn't have any idea, right?
bohanlon has joined #ocaml
Onime has joined #ocaml
<Onime>
hi.. anyone familiar with the %left , %right & co of ocamlyacc ?
<bluestorm>
hum
<bluestorm>
you mean, the priorities indications ?
<Onime>
yes
<Onime>
I'm quite confuse on which priorities to set if I want to parse 1 + 2 * 3 = 1+(2*3) (simple exemple but it's the idea)
<bluestorm>
hum
<bluestorm>
hum
<bluestorm>
i think it's the right priority
<bluestorm>
the group on the right is evaluated first
<bluestorm>
but
<bluestorm>
%left, %right doesn't play a role in that case
<bluestorm>
i think you just have to define * before +
<Onime>
hum... I'll try that first
<jer>
you mean * would need to come after + if you want to give it a higher priority (priorities work from lowest to highest)
<jer>
%left/%right has nothing to do with the priority, just associativity
<bluestorm>
"All symbols on the same line are given the same precedence. They have higher precedence than symbols declared before in a %left, %right or %nonassoc line."
<jer>
bluestorm, right; that's exactly as i described.. if a symbol (%left/%right/%nonassoc) is defined before another, it is said to have a lower precedence)
<jer>
so:
<jer>
%left FOO
<jer>
%left BAR
<jer>
"BAR" would have a higher precedence than FOO
<Onime>
thanx
<Onime>
just to check if I'm right about %prec
<Onime>
| MINUS expr %prec UMINUS { - $2 } means : match MINUS expr and give it the precedence of UMINUS ?
<jer>
Onime, right
<Onime>
\o/
<jer>
anyway, 0430, bedtime
<Onime>
:) 1030 here, breakfast time
<Onime>
good night
<jer>
Onime, enjoy =]
<Onime>
arf... which priority should I give to the modulo operator.... I never use it ^^