Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #3440
| From | iwlnx <larry@rockridgefarm.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | getting AST from yacc |
| Date | 2023-03-25 09:45 -0400 |
| Organization | Compilers Central |
| Message-ID | <23-03-040@comp.compilers> (permalink) |
| References | <sympa.1679707581.2255.930@lists.iecc.com> |
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]
Back to comp.compilers | Previous | Next | Find similar
getting AST from yacc iwlnx <larry@rockridgefarm.com> - 2023-03-25 09:45 -0400
csiph-web