DocumentCode :
2427884
Title :
Relation-based algorithms for generating SLR(1) and LALR(1) parsers
Author :
Logothetis, George ; Bermudez, Manuel E.
Author_Institution :
AT&T Bell Lab., Summit, NJ, USA
fYear :
1989
fDate :
22-24 March 1989
Firstpage :
305
Lastpage :
309
Abstract :
The authors characterize the lookahead symbols in terms of very simple relations that bring out substantial structural similarities between SLR(1) and LALR(1) lookaheads. They present algorithms for computing SLR(1) and LALR(1) lookahead that are substantially simpler than those currently known. In contrast to existing algorithms which compute a lookahead set for each reduce move, the authors´ algorithms compute all reduce moves that are triggered by each individual terminal symbol. This simplifies considerably both the characterizations and the algorithms. In particular, no expensive set operations are carried out, and no storage of lookahead sets is required.<>
Keywords :
grammars; parallel algorithms; LALR(1); SLR(1); lookahead symbols; parsers; reduce moves; relation based algorithms; Automata; Computer languages; Production; Program processors; Terminology;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Computers and Communications, 1989. Conference Proceedings., Eighth Annual International Phoenix Conference on
Conference_Location :
Scottsdale, AZ, USA
Print_ISBN :
0-8186-1918-x
Type :
conf
DOI :
10.1109/PCCC.1989.37405
Filename :
37405
Link To Document :
بازگشت