Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
Javascript must be enabled to continue!

Noncanonical SLR(1) Grammars

View through CrossRef
Two noncanonical extensions of the simple LR(1) (SLR(1)) method are presented, which reduce not only handles but also other phrases of sentential forms. A class of context-free grammars called leftmost SLR(1) (LSLR(1)) is defined by using lookahead symbols which appear in leftmost derivations. This class includes the SLR(1), reflected SMSP, and total precedence grammars as proper subclasses. The class of LSLR(1) languages properly includes the deterministic context-free languages, their reflections, and total precedence languages. By requiring that phrases which have been scanned be reduced as early as possible, a larger class of context-free grammars called noncanonical SLR(1) (NSLR(1)) is defined. The NSLR(1) languages can be recognized deterministically in linear time using a two-stack pushdown automaton. An NSLR(1) parser generator has been implemented. Empirical results show that efficient NSLR(1) parsers can be constructed for some non-LR grammars which generate nondeterministic languages. Applications of the NSLR(1) method to improve the parsing and translation of programming languages are discussed.
Title: Noncanonical SLR(1) Grammars
Description:
Two noncanonical extensions of the simple LR(1) (SLR(1)) method are presented, which reduce not only handles but also other phrases of sentential forms.
A class of context-free grammars called leftmost SLR(1) (LSLR(1)) is defined by using lookahead symbols which appear in leftmost derivations.
This class includes the SLR(1), reflected SMSP, and total precedence grammars as proper subclasses.
The class of LSLR(1) languages properly includes the deterministic context-free languages, their reflections, and total precedence languages.
By requiring that phrases which have been scanned be reduced as early as possible, a larger class of context-free grammars called noncanonical SLR(1) (NSLR(1)) is defined.
The NSLR(1) languages can be recognized deterministically in linear time using a two-stack pushdown automaton.
An NSLR(1) parser generator has been implemented.
Empirical results show that efficient NSLR(1) parsers can be constructed for some non-LR grammars which generate nondeterministic languages.
Applications of the NSLR(1) method to improve the parsing and translation of programming languages are discussed.

Related Results

Systematic Literature Review di Bidang Sistem Informasi dan Ilmu Komputer
Systematic Literature Review di Bidang Sistem Informasi dan Ilmu Komputer
<p class="Abstrak">Salah satu pendekatan studi pustaka adalah <em>Systematic Literature Review</em> (SLR). Walaupun sudah terdapat banyak naskah berbahasa Indones...
Evolutionary Grammatical Inference
Evolutionary Grammatical Inference
Grammatical Inference (also known as grammar induction) is the problem of learning a grammar for a language from a set of examples. In a broad sense, some data is presented to the ...
ON A SUPERCLASS OF A-GRAMMARS
ON A SUPERCLASS OF A-GRAMMARS
In this paper we consider a superclass of automaton grammars that can be represented in terms of paths on graphs. With this approach, we assume that vertices of graph are labeled b...
Revisiting excitation of length-of-day using recent GRACE/GRACE-FO, SLR, SLR+GRACE/GRACE-FO gravity solutions and geophysical models
Revisiting excitation of length-of-day using recent GRACE/GRACE-FO, SLR, SLR+GRACE/GRACE-FO gravity solutions and geophysical models
Variations in Earth&#8217;s rotation, encompassing polar motion (PM) and the length-of-day (LOD) changes, result from a variety of factors influencing mass distribution and mov...
Tidal Responses to Future Sea Level Trends on the Yellow Sea Shelf
Tidal Responses to Future Sea Level Trends on the Yellow Sea Shelf
AbstractQuantifying how tides evolve with coupling between future sea level rise (SLR) and different coastline configurations is imperative for proposing appropriate coastal defens...
Orbital Angular Momentum Flux Density in Partially Coherent Beams with Noncanonical Vortex Pairs
Orbital Angular Momentum Flux Density in Partially Coherent Beams with Noncanonical Vortex Pairs
This paper investigates the propagation properties and orbital angular momentum (OAM) flux density distribution of partially coherent beams embedded with noncanonical vortex pairs ...
Remote attribute grammars
Remote attribute grammars
Describing the static semantics of programming languages with attribute grammars is eased when the formalism allows direct dependencies to be induced between rules for nodes arbitr...
Unification Grammars
Unification Grammars
Grammars of natural languages can be expressed as mathematical objects, similar to computer programs. Such a formal presentation of grammars facilitates mathematical reasoning with...

Back to Top