Dynamic grammars and semantic analysis

Abstract : We define a dynamic grammar as a device which may generate an unbounded set of context-free grammars, each grammar is produced, while parsing a source text, by the recognition of some construct. It is shown that dynamic grammars have the formal power of Turing machines. For a given source text, a dynamic grammar, when non ambiguous, may be seen as a sequence of usual context-free grammars specialized by this source text: an initial grammar is modified, little by little, while the program is parsed and is used to continue the parsing process. An experimental system which implements a non ambiguous \sl dynamic parser is sketched and applications of this system for the resolution of some semantic analysis problems are shown. Some of these examples are non-trivial (overloading resolution, derived types, polymorphism, \ldots) and indicate that this method may partly compete with other well-known techniques used in type-checking.
Type de document :
Rapport
[Research Report] RR-2322, INRIA. 1994
Liste complète des métadonnées

https://hal.inria.fr/inria-00074352
Contributeur : Rapport de Recherche Inria <>
Soumis le : mercredi 24 mai 2006 - 15:08:11
Dernière modification le : vendredi 16 septembre 2016 - 15:19:38
Document(s) archivé(s) le : dimanche 4 avril 2010 - 22:15:49

Fichiers

Identifiants

  • HAL Id : inria-00074352, version 1

Collections

Citation

Pierre Boullier. Dynamic grammars and semantic analysis. [Research Report] RR-2322, INRIA. 1994. 〈inria-00074352〉

Partager

Métriques

Consultations de
la notice

238

Téléchargements du document

207