Abstract
Simple LR(1) and lookahead LR(1) phrase structure grammars are defined and corresponding deterministic two-pushdown automata which parse all sentences are given. These grammars include a wide variety of grammars for non context-free languages. A given phrase structure grammar is one of these types if the parse table for the associated automaton has no multiple entries. A technique for construction of this parse table is given which in the lookahead case involves elimination of inverses in a grammar for lookahead strings for LR(0) items and computation of first sets for strings of symbols in the given grammar.
Original language | English |
---|---|
Pages (from-to) | 191-209 |
Number of pages | 19 |
Journal | Acta Informatica |
Volume | 24 |
Issue number | 2 |
DOIs | |
State | Published - Apr 1987 |
ASJC Scopus subject areas
- Software
- Information Systems
- Computer Networks and Communications