From: Fredrik Karlsson on 5 Jun 2010 04:41 Hi, I've been trying to get hold of a parser generator + lexer combination that would give me a parser implemented in Tcl, that actually works. My experience so far: taccle + fickle - just outputs nothing. Even the demos fails to give any ouput. Yeti - I get bus error every time I use either the parser or the lexer demos. I am using UTF-8 encoding.. Are there other options out there that I should try before continuing my current work of rolling my own parser from scratch? /Fredrik
From: Fredrik Karlsson on 5 Jun 2010 04:46 Sorry, I forgot one: page in tcllib - sorry, but is this package actually supposed to be used? The documentation is, I think, mostly readable if you wrote the package yourself, or already know quite a lot about how to use it. Sorry if someone thinks I am being unfair, but this is my honest opinion. /Fredrik
From: Uwe Klein on 5 Jun 2010 05:19 Fredrik Karlsson wrote: > Hi, > > I've been trying to get hold of a parser generator + lexer combination > that would give me a parser implemented in Tcl, that actually works. > > My experience so far: > > taccle + fickle - just outputs nothing. Even the demos fails to give > any ouput. > Yeti - I get bus error every time I use either the parser or the lexer > demos. > > I am using UTF-8 encoding.. Are there other options out there that I > should try before continuing my current work of rolling my own parser > from scratch? > > /Fredrik Well if working examples don't work it looks like your basic setup is broken in a major way. just tested yeti-0.4.1 with an old tcl8.4 and a spanking new 8.5.8 ( Activestate Dist ) both set up for UTF-8 encoding using each time the cc.tcl example. ( you have to [catch {package require yeti} cerr] ) it creates without fail a cparser.tcl file. ( don't know how to get on from there. not my forte ) uwe
From: Helmut Giese on 5 Jun 2010 09:25 Hi Fredrik, >Yeti - I get bus error every time I use either the parser or the lexer >demos. I have been using Yeti in the past (though probably with the actual version - I doubt that it changed since then) and have been very content. I second Uwe's opinion: Your setup appears to be broken. Yeti is pure Tcl - so if you get a bus error it's most certainly not because of Yeti's code. Hm, Yeti relies on ITcl. If you have a version mis-match between Tcl proper and ITcl this might be. For me (under Windows) running parse-calc.tcl from the demo sub-dir just works (ActiveTcl 8.5.8). If I uncomment the lines which generate a file foo.tcl I get it - else I get just the results of the test call printed out. What kind of setup do you have? Could you get a version from ActiveState and try again? HTH Helmut Giese
From: Helmut Giese on 5 Jun 2010 09:26
On Sat, 5 Jun 2010 01:46:49 -0700 (PDT), Fredrik Karlsson <dargosch(a)gmail.com> wrote: >Sorry, I forgot one: > >page in tcllib I am routinely interested in parsers: Which "page" (?) do you refer to? |