Added a missing piece (was "Trouble with Parsing C")

From: Helmut Giese (hgiese_at_ratiosoft.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 10:23:33 GMT

Hello out there,
it seems like the lexer from http://mini.net/tcl/3891 and the parser
from http://mini.net/tcl/3906 have not yet been used together - at
least I was unable to find any code which showed 'how to'.

But Tcl being what it is, it was easy to write a small adapter class
which makes it possible to combine the two. I added it (plus a small
driver script) to http://mini.net/tcl/3906.

Best regards
Helmut Giese



Relevant Pages

  • Re: JCL parser status
    ... instead of the Flex lexer code would seriously complicate the parser. ... I sometimes precede a block of statements such as a job step ... Aren't JCL statements, even continued ones, self delimiting? ...
    (bit.listserv.ibm-main)
  • Re: What is the fastest method of parsing scheme?
    ... When I tried implementing a reader for Scheme, I first wrote the lexer ... which consumes all the characters up to the closing ... The parser is much simpler than the lexer because it does not have to ...
    (comp.lang.scheme)
  • Re: newbee help : parser in C
    ... analyser in the same language a while ago. ... It was a very simple lexer ... that tokenised a simple C source code text file - basically a very ... Now i want to know how to build a parser. ...
    (comp.lang.c)
  • Re: Requirement ordering (was Agile developement ... more than just extreme programming ???)
    ... We can treat it like a CFG, ... >>Tomita context sensitive parser. ... lexer: if you mean the tokenizer, you are right, it can be kept. ... parsed output structure: again, when you do the move from CFG-centric ...
    (comp.object)
  • Comments in a pre-compiler
    ... I made a pre-compiler to add a couple of instructions I had in mind to ... an existing language, basically to test whether they were usable or ... the lexer, they never get to the parser. ...
    (comp.compilers)