Compiler generator

from Wikipedia, the free encyclopedia

A compiler generator is a computer program that automatically generates a corresponding compiler (translator) from a grammar .

Programs that can only create parts of a compiler are often incorrectly referred to as compiler generators. B. a scanner generator or parser generator .

Real compiler generation is still a research area and has only succeeded in individual cases. Above all, it promises advantages in terms of the correctness of the generated compiler as well as saving time-consuming and error-prone programming work when creating a compiler manually or partially automatically.

The creation of a compiler generator or a compiler using a compiler generator is part of the computer science discipline of compiler construction .