Re: kimwitu lex and yacc...

Harald Boehme <>
4 May 2000 17:17:24 -0400

          From comp.compilers

Related articles
kimwitu lex and yacc... (2000-05-01)
Re: kimwitu lex and yacc... (Harald Boehme) (2000-05-04)
Re: kimwitu lex and yacc... (2000-05-10)
| List of all articles for this month |

From: Harald Boehme <>
Newsgroups: comp.compilers
Date: 4 May 2000 17:17:24 -0400
Organization: Humboldt University Berlin, Department of Computer Science
References: 00-05-009
Keywords: tools, parse


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 >>>>
          <<<< >>>>

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.