Related articles |
---|
Modularize compiler construction? pengyu.ut@gmail.com (Peng Yu) (2010-01-23) |
Re: Modularize compiler construction? kkylheku@gmail.com (Kaz Kylheku) (2010-01-24) |
Re: Modularize compiler construction? cr88192@hotmail.com (BGB / cr88192) (2010-01-24) |
Re: Modularize compiler construction? cr88192@hotmail.com (cr88192) (2010-01-25) |
Re: Modularize compiler construction? DrDiettrich1@aol.com (Hans-Peter Diettrich) (2010-01-25) |
Re: Modularize compiler construction? pengyu.ut@gmail.com (Peng Yu) (2010-01-25) |
Re: Modularize compiler construction? idbaxter@semdesigns.com (Ira Baxter) (2010-01-28) |
Re: Modularize compiler construction? gneuner2@comcast.net (George Neuner) (2010-01-28) |
Re: Modularize compiler construction? ott@mirix.org (Matthias-Christian Ott) (2010-01-31) |
Re: Modularize compiler construction? cr88192@hotmail.com (BGB / cr88192) (2010-01-31) |
Re: Modularize compiler construction? gneuner2@comcast.net (George Neuner) (2010-02-01) |
[1 later articles] |
From: | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 25 Jan 2010 16:25:08 +0100 |
Organization: | Compilers Central |
References: | 10-01-080 10-01-082 |
Keywords: | design |
Posted-Date: | 28 Jan 2010 01:18:05 EST |
Kaz Kylheku schrieb:
> Bison does not provide the semantics of translation, only a way to
> build a parser, which is far, far from a complete translation scheme.
> It can be argued that a parser-generation tool /should/ only do that
> one job. A more complete compiler construction suite would still have
> a parser generator tool inside it which does only parser generation.
I found a significant difference between bottom-up (LR) and top-down
(LL...) parsers, when it comes to adding semantic actions to an parser.
While much work will be done on the parser-generated AST, the
transformation of an parse tree into an AST should be done while
parsing, in the most "natural" and comfortable way.
Such tree building features are reflected in newer parser generators
(e.g. ANTLR), but never have been a topic in the old
parser-automaton-only generators. Newer language development systems,
like MetaS or TextTransformer, include debug and visualization features
for the development of a *language*, usable long before a concrete
compiler back-end comes into the play.
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.