Are there compiler generators?
Hi Folks,
There are lexer generators. Flex is a lexer generator.
There are parser generators. Bison is a parser generator.
Are there compiler generators? ...
There are lexer generators. Flex is a lexer generator.
There are parser generators. Bison is a parser generator.
Are there compiler generators?
Is it still true in 2022--there are no compiler
generators?
[There are certainly programs that will generate a combined lexer and parser but there's a lot more to a compiler. -John]
Hi Folks,
There are lexer generators. Flex is a lexer generator.
There are parser generators. Bison is a parser generator.
Are there compiler generators?
There are lexer generators. Flex is a lexer generator.
There are parser generators. Bison is a parser generator.
Are there compiler generators?
There are lexer generators. Flex is a lexer generator.
There are parser generators. Bison is a parser generator.
Are there compiler generators?
In practice, there is a lot more to writing a compiler than just
partially evaluating an interpreter.
Roughly speaking a)-c) is the front end, d) is the middle end and
e)-f) is the back end.
Hi Folks,
There are lexer generators. Flex is a lexer generator.
There are parser generators. Bison is a parser generator.
Are there compiler generators?
analysis or translation of computer languages to be on topic. -John]
On 5/30/22 2:53 PM, Hans-Peter Diettrich wrote:
analysis or translation of computer languages to be on topic. -John]What are those "computer" languages? I'd prefer "formal" languages (Chomsky...) instead. E.g. Meta§ also was used for DNA analysis.
[I was going to say artificial languages but I don't think we have anything useful to say about Esperanto. In practice it hasn't been very hard to keep discussions more or less on topic. -John]
So a compiler can be generated declaratively by using a set of
declarative generator tools, e.g., Flex for lexical analysis, Bison
for syntax/semantic analysis, and Iburg for code generation.
Has anyone used this combination of tools to create a whole compiler?
So a compiler can be generated declaratively by using a set of
declarative generator tools, e.g., Flex for lexical analysis, Bison
for syntax/semantic analysis, and Iburg for code generation.
[I expect that someone has used lex, yacc, and iburg in the same
compiler sometime in the past 30 years. But that doesn't mean that
they combine into a compiler generator any more than a saw, a hammer,
and a paintbrush combine into a house generator. They're tools, each
does what it does. -John]
So a compiler can be generated declaratively by using a set of
declarative generator tools, e.g., Flex for lexical analysis, Bison
for syntax/semantic analysis, and Iburg for code generation.
Has anyone used this combination of tools to create a whole compiler?
But AFAIU there is no such holistic thing like automatic complete
compiler construction a la
Compiler = f (grammar, software-infrastructure, target-hardware)
Are there compiler generators?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 469 |
Nodes: | 16 (2 / 14) |
Uptime: | 59:44:59 |
Calls: | 9,454 |
Calls today: | 1 |
Files: | 13,596 |
Messages: | 6,113,271 |