Tutorials on simple ASTs using flex/lex and bison/yacc

"Terry Flannery" <terry.flannery@btinternet.com>
4 Aug 2002 11:41:02 -0400

          From comp.compilers

Related articles
Tutorials on simple ASTs using flex/lex and bison/yacc terry.flannery@btinternet.com (Terry Flannery) (2002-08-04)
| List of all articles for this month |
From: "Terry Flannery" <terry.flannery@btinternet.com>
Newsgroups: comp.compilers
Date: 4 Aug 2002 11:41:02 -0400
Organization: BT Openworld
Keywords: lex, yacc, question
Posted-Date: 04 Aug 2002 11:41:01 EDT

Hi!


I am very new using both flex and bison, and to writing compilers. I
am looking for a simple tutorial on creating good ASTs, for use in an
interpreter for a simple language. My attempts thus far although
(somewhat) successful, have proven very slow, and therefore
unusable. I have tried to study the sources of other popular
interpreters, namely PHP, and Perl, but both of those a well beyond my
comprehension. Are there any tutorials on this subject, and if so,
where can I find them? Also, are there any good books that I should
read on this topic, and the theory behind compilers and optimization
techniques?


Thanks in advance,
Terry


Post a followup to this message

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