DocumentCode :
2780726
Title :
DR parsers: a generalization of LR parsers
Author :
Costagliola, Gennaro ; Chang, Shi-Kuo
Author_Institution :
Dept. of Comput. Sci., Pittsburgh Univ., PA, USA
fYear :
1990
fDate :
4-6 Oct 1990
Firstpage :
174
Lastpage :
180
Abstract :
A method is presented to construct a parser for a visual language whose specification can be done by a context-free grammar. The main idea is to allow a traditional LR parser to choose the next symbol to parse from a two-dimensional space. The positional grammar is defined, and some examples are given. The DR parser, along with the parsing algorithm and examples, is presented (`D´ stands for driven scanning of the input, and `R´ for rightmost derivation in reverse.) The construction of DR(0) items and simple DR parsing tables are shown. Considerations of ambiguity are given, along with the construction of a simple DR parser for the arithmetic expression grammar. The results of a practical implementation using the Yacc tool are given
Keywords :
context-free grammars; formal languages; formal specification; high level languages; program compilers; visual programming; DR parsers; DR(0) items; LR parsers; Yacc tool; ambiguity; arithmetic expression grammar; context-free grammar; driven scanning; left-right parsers; parsing tables; positional grammar; rightmost derivation in reverse; specification; two-dimensional space; visual language; Computer science; Head; Joining processes; Layout; Mars; Page description languages; Pattern recognition; Tail; Tree data structures; Tree graphs;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Visual Languages, 1990., Proceedings of the 1990 IEEE Workshop on
Conference_Location :
Skokie, IL
Print_ISBN :
0-8186-2090-0
Type :
conf
DOI :
10.1109/WVL.1990.128401
Filename :
128401
Link To Document :
بازگشت