|kimwitu lex and yacc... email@example.com (2000-05-01)|
|Re: kimwitu lex and yacc... firstname.lastname@example.org (Harald Boehme) (2000-05-04)|
|Re: kimwitu lex and yacc... email@example.com (2000-05-10)|
|From:||Harald Boehme <firstname.lastname@example.org>|
|Date:||4 May 2000 17:17:24 -0400|
|Organization:||Humboldt University Berlin, Department of Computer Science|
Pietro Abate wrote:
> I want to use kimwitu to make a simple parser for a pascal-like
> language, but I'm not able to find any example to do this... I've
> seen the calculator example in the kimwitu distribution but I've not
> realy understood which are the realtions between kimwitu, lex and
> yacc. Does anybody could help me with an realy little example that
So you have to write down the syntax of the lang. in terms of an lex-
and yacc-file. The rules in the yacc-file should than extended to
construct the phyla (subtree) and pass it up to the upper rule via the
yacc value stack ($$-notation). For this purpose kimwitu and kimwitu++
provide an YYSTYPE definition to use in yacc.
But any way you should have a look in an compiler book.
<<<< Harald Böhme, Berlin 12489 >>>>
<<<< Radicke Str. 52 >>>>
<<<< email@example.com >>>>
Return to the
Search the comp.compilers archives again.