REQ: Flex++Bison++ example of expressions. (Pieter Kuppens)
9 Feb 1996 17:01:19 -0500

          From comp.compilers

Related articles
REQ: Flex++Bison++ example of expressions. (1996-02-09)
| List of all articles for this month |

From: (Pieter Kuppens)
Newsgroups: comp.compilers
Date: 9 Feb 1996 17:01:19 -0500
Organization: Eindhoven University of Technology, Digital Information Systems Group
Keywords: yacc, lex, question


I'm making a compiler with Flex++ 2.3.8-7 and Bison++ 1.21-8, and I'm
stuck with some toy compiler examples.
Anyone used these tools for a grammar including for instance expressions?
expr: term | expr '+' term
term: fact | term '*' fact
fact: atom | '(' expr ')'
atom: INT | IDENT

I'm specially interested in the parse tree contruction as clear class
definition, with inheritance.

Pieter Kuppens ---
Eindhoven University of Technology --- EH 11.24 --- (+31)40-247 3394
E.S.V.V. Pusphaira on WWW;

Post a followup to this message

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