LGL - Logo

Gramact Project

Home Index Members Info Teaching Research Downloads

Under the Gramact project, a toolset of lexical and syntactic analyser generators has been developed. The generators are table-driven, i.e. a parameter dynamically determines what language grammar to use for source code analysis.

Lexical and syntactic grammars of taget languages are defined in GRAMOL, an EBNF-like notation.

Lexical_Analyser_G is a generic package for lexical analysis. It may be used alone.

Syntax_Analyser_G is a generic package for syntax analysis, including access to the lexical tokens of Lexical_Analyser_G. To allow execution of user-defined actions, grammar decorations control where the parser must suspend analysis.

The paper entitled GRAMACT: Présentation et mode d'emploi only available in French, provides an overview, a rough user's guide, and the most accurate information on how to use the Gramact programs. The grammar editor mentioned in the paper about the Syntax Analyser, Gredi, has been replaced with a simpler solution; two programs now separately decorate a grammar with actions (DECOGRA) and extract actions from a (decorated) grammar (EXTRACT).

Other articles on the GRAMACT project are:

GRAMOL: A grammar Description Language for Lexical and Syntactic Parsers
Available in English

Lexical_Analyser_G: A Multi-Language Lexical Analysis Package
Available in English and en français.

Syntax_Analyser_G: A Multi-Language Syntax Analysis Package
Available in English and en français.

EPFL | IC | LGL | Teaching | Ada | LGL Components
Last modified 10/22/2002, Webmaster.