Abstract
dc:description.abstractThe classes of simple and weak precedence grammars are generalized to include ε-rules (productions with the empty right parts). The descriptive power of epsilon simple precedence (ESP) grammars increases directly with the number of ε-rules permitted; the class of ESP grammars with no ε-rules, ESP0, is identical to the class of simple precedence grammars; ESP grammars with at most one ε-rule, ESP1, define a class of languages which properly includes the class of ESP0 languages, but is itself properly included in the class of deterministic, context-free languages. In general, ESP grammars having at most i ε-rules, ESPi, define a class of languages which is properly included in that defined by ESPi+1 grammars. This hierarchy of languages exhausts the deterministic context-free languages. The hierarchy of ESP languages is established using an iteration theorem which may be used to show that a given language is not ESPi for a given i. An algorithm to convert arbitrary LR(1) grammars to equivalent epsilon weak precedence (EWP) grammars is developed. The class of Viable Prefix EWP grammars is defined and it is shown that the EWP parser for every Viable Prefix EWP grammar detects syntactic errors at the earliest possible time. Also, it is established that every deterministic context-free language is defined by some Viable Prefix EWP grammar. Finally, it is shown that the class of EWP grammars, while properly containing the class of Viable Prefix EWP grammars, is itself properly included in the well-known classes of context-free grammars with the ε-rules which define exactly the deterministic context-free languages.
Degree
thesis:*- Grantor dc:publisher
- University of Central Florida
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Milani, Masoud T.
- Contributors dc:contributor
-
- Workman, David A.
Subjects
dc:subject × 10- Programming languages
- Syntax
- Epsilon simple precedence (ESP) grammars
- Epsilon weak precedence (EWP) grammars
- Hierarchy of ESP_i languages
- Conversion algorithm from LR(1) to EWP
- Viable-prefix EWP parser error detection
- Computer Sciences
- Physical Sciences and Mathematics
- Formal languages--Syntax; Parsing (Computer grammar); Precedence; Language and languages--Grammars; Programming languages (Electronic computers)--Grammar
Rights
dc:rights- Statement dc:rights
-
- Public Domain
- Language dc:language
- English
Identifiers
dc:identifier.*- Identifier
- DP0020312