Re: request for simple example: parse tree generation

pjj@cs.man.ac.uk (Pete Jinks)
10 Oct 1996 11:05:27 -0400

          From comp.compilers

Related articles
request for simple example: parse tree generation kendrac@ee.ubc.ca (1996-10-03)
Re: request for simple example: parse tree generation mac@coos.dartmouth.edu (1996-10-06)
Re: request for simple example: parse tree generation belinfan@cs.utwente.nl (1996-10-10)
Re: request for simple example: parse tree generation pjj@cs.man.ac.uk (1996-10-10)
| List of all articles for this month |

From: pjj@cs.man.ac.uk (Pete Jinks)
Newsgroups: comp.compilers
Date: 10 Oct 1996 11:05:27 -0400
Organization: Dept of Computer Science, University of Manchester, U.K.
References: 96-10-013
Keywords: yacc, WWW

kendra cooper <kendrac@ee.ubc.ca> wrote:
>I'm looking for a *simple* example that shows how to generate
>an explicit parse tree using yacc.


Try URL http://www.cs.man.ac.uk/~pjj/cs2112/examples/tree


The directory contains lex, yacc & makefile to convert an
expression to a parse tree & print the parse tree out.
(The lex & yacc contain several ANSI C functions.)


(If you are a beginner, you might find of the information from
  my lectures useful - http://www.cs.man.ac.uk/~pjj/cs2112/)
--


Post a followup to this message

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