Banana changed the topic of #ocaml to: OCaml 3.08.1 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
mrsolo has quit ["Leaving"]
CosmicRay has joined #ocaml
kinners has joined #ocaml
mrsolo has joined #ocaml
CosmicRay has quit ["Leaving"]
ows has left #ocaml []
mrsolo has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has joined #ocaml
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has joined #ocaml
Nutssh has joined #ocaml
mrsolo_ has quit [Client Quit]
mrsolo_ has joined #ocaml
cjohnson has quit ["The main attraction: distraction"]
m3ga has joined #ocaml
m3ga has quit ["Client exiting"]
m3ga has joined #ocaml
m3ga has quit [Nick collision from services.]
Nutssh has quit ["Client exiting"]
m3ga has joined #ocaml
m3ga has quit [Client Quit]
kinners has quit ["leaving"]
docelic has quit [Read error: 54 (Connection reset by peer)]
Nutssh has joined #ocaml
vezenchio has joined #ocaml
Hipo has left #ocaml []
_fab has joined #ocaml
pango has quit ["Client exiting"]
pango has joined #ocaml
Tristram has quit ["Leaving"]
srv has quit [Read error: 232 (Connection reset by peer)]
srv has joined #ocaml
Diablo has joined #ocaml
mrsolo_ has quit [Read error: 113 (No route to host)]
mrsolo_ has joined #ocaml
Herrchen has joined #ocaml
Freerider has joined #ocaml
karryall has joined #ocaml
mlh has quit ["who are you people and what are you doing in my computer!?"]
docelic has joined #ocaml
mayhem has joined #ocaml
<mayhem> hey
<mayhem> is here a better algorithm than the dominator based one for translating to SSA ?
_fab has quit []
_fab has joined #ocaml
Freerider has quit ["gtg"]
joel__ has quit [Read error: 110 (Connection timed out)]
joel__ has joined #ocaml
mlh has joined #ocaml
cjohnson has joined #ocaml
<mayhem> anyone experienced in functionnal dataflow analysis ?
pango is now known as pangoaway
budjet has joined #ocaml
budjet has quit [Remote closed the connection]
budjet has joined #ocaml
gl has quit [Read error: 110 (Connection timed out)]
Diablo has quit [Nick collision from services.]
diablo_ has joined #ocaml
budjet has quit [Remote closed the connection]
monochrom has joined #ocaml
mlh has quit [Client Quit]
diablo_ is now known as Tristram
budjet has joined #ocaml
duality has joined #ocaml
duality has quit [Read error: 104 (Connection reset by peer)]
<haakonn> i have written a lexer/parser with the ocaml tools, but the error reporting in it is very poor (basically, the parser throws an exception, and my client code catches it and says "syntax error"). are there any examples of how to write better error reporting?
<monochrom> is there some information in the exception?
<haakonn> i don't think so, it's a Parsing.Parse_error
<haakonn> i should check the lib documentation though
<haakonn> "Raised when a parser encounters a syntax error. Can also be raised from the action part of a grammar rule, to initiate error recovery." is all it says
<haakonn> yeah, it's only string -> unit
budjet has quit [Remote closed the connection]
<haakonn> section 12.4.4 of the ocaml manual talks about error recovery, but it's not very concrete
pangoaway is now known as pango
pango has quit [Nick collision from services.]
pango has joined #ocaml
<monochrom> it assumes you know yacc.
<monochrom> it wants you to do it the yacc way.
<monochrom> I don't know yacc, so I can't be more concrete either. :)
<haakonn> me neither, unfortunately
mayhem has quit ["Fermeture du client"]
<Smerdyakov> haakonn, I advise constructing a minimally sized input that you think should parse but doesn't.
<Smerdyakov> haakonn, then look at your rules and attempt to derive a parse tree for it by hand.
<Smerdyakov> haakonn, if you are sure there is a tree but can't find it, look at the filename.output file (if you are compiling filename.mly). It contains information on any shift/reduce or reduce/reduce conflicts
<haakonn> Smerdyakov: it can parse all legal programs fine, the problem is what it does with _illegal_ programs. specifically, the parser just throws a "dumb" exception with no useful information. i'd like the "client" code to find out what input file, what line number and what column number triggered the error, and report that.
avn has quit [Remote closed the connection]
<haakonn> i have a feeling Lexing.position could be useful in some way
<karryall> haakonn: ocamlyacc doesn't do this automatically, you have to keep track yourself of the current position in the input file (AFAIK)
<haakonn> karryall: doesn't it provide access to a Lexing.position? (i'm wading through the docs slowly)
CosmicRay has joined #ocaml
<Smerdyakov> haakonn, not that I know of.
avn has joined #ocaml
<haakonn> ok
<karryall> haakonn: in Lexing.position, only the character number is updated automatically. If you want lines number you have to do it yourself.
<haakonn> i see
Lemmih_ has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has quit [Read error: 110 (Connection timed out)]
budjet has joined #ocaml
pango has quit ["Leaving"]
Submarine has joined #ocaml
budjet has quit [Remote closed the connection]
pango has joined #ocaml
Tristram has quit ["Leaving"]
diablo_ has joined #ocaml
diablo_ is now known as Tristram
Tristram has left #ocaml []
gl has joined #ocaml
budjet has joined #ocaml
Submarine has quit ["ChatZilla 0.8.31 [Mozilla rv:1.4.1/20031114]"]
CLxyz has joined #ocaml
budjet has quit [Remote closed the connection]
Submarine has joined #ocaml
Herrchen has quit ["bye"]
joel__ is now known as jrosdahl
docelic has quit ["rebootink"]
vezenchio has quit ["Look at you, hacker - a pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you]
docelic has joined #ocaml
det has quit [Read error: 110 (Connection timed out)]
Submarine has quit ["ChatZilla 0.8.31 [Mozilla rv:1.4.1/20031114]"]
mrsolo_ has joined #ocaml
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
malte has quit ["gnome 2.8"]
malte has joined #ocaml
CosmicRay has quit ["Client exiting"]
eugos has joined #ocaml