DocumentCode :
1999440
Title :
The Reuse of Grammars with Embedded Semantic Actions
Author :
Parr, Terence
Author_Institution :
San Francisco Univ., San Francisco, CA
fYear :
2008
fDate :
10-13 June 2008
Firstpage :
5
Lastpage :
10
Abstract :
Reusing syntax specifications without embedded arbitrary semantic actions is straightforward because the semantic analysis phases of new applications can feed off trees or other intermediate structures constructed by the pre-existing parser. The presence of arbitrary embedded semantic actions, however, makes reuse difficult with existing mechanisms such as grammar inheritance and modules. This short paper proposes a mechanism based upon prototype grammars that automatically pushes changes from prototypes to derived grammars even in the presence of semantic actions. The prototype mechanism alone would be unsuitable for creating a new grammar from multiple preexisting grammars. When combined with grammar composition, however, the prototype mechanism would improve grammar reuse because imported pre-existing grammars could be altered to suit each new application.
Keywords :
computational linguistics; grammars; grammar reuse; prototype grammars; semantic analysis; syntax specification; Automatic testing; Data structures; Feeds; Heart; Legged locomotion; Libraries; Logic; Programming profession; Prototypes; USA Councils; Grammar; actions; composition; reuse; semantics;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Program Comprehension, 2008. ICPC 2008. The 16th IEEE International Conference on
Conference_Location :
Amsterdam
ISSN :
1092-8138
Print_ISBN :
978-0-7695-3176-2
Type :
conf
DOI :
10.1109/ICPC.2008.36
Filename :
4556112
Link To Document :
بازگشت