Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #3440 > unrolled thread

getting AST from yacc

Started byiwlnx <larry@rockridgefarm.com>
First post2023-03-25 09:45 -0400
Last post2023-03-25 09:45 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.compilers

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  getting AST from yacc iwlnx <larry@rockridgefarm.com> - 2023-03-25 09:45 -0400

#3440 — getting AST from yacc

Fromiwlnx <larry@rockridgefarm.com>
Date2023-03-25 09:45 -0400
Subjectgetting AST from yacc
Message-ID<23-03-040@comp.compilers>
I am a bit old and do not learn as well as in the past. I have a very
large yacc file that works fine.

What I want is to produce an AST tree from the yacc .y file. I have read
many things on the net

about this but they all start at too high a level for me to grasp.

Any help for an old slow old man (related to this problem)?

Larry
[The short answer is that yacc doesn't do that, but it's not hard to write action
code that builds a AST as it does the rule reductions.  If you can find a copy of
my "flex & bison" it has some examples that build AST. -John]

[toc] | [standalone]


Back to top | Article view | comp.compilers


csiph-web