Formal grammars equipped with operators for specifying the form of the context of a substring were recently studied by Barash and Okhotin ("Defining contexts in context-free grammars", LATA 2012), further extending the author's ("Conjunctive grammars", DCAGRS 2000) earlier work on propositional connectives in grammars. These grammars allow two types of context specifications: for a substring w of a string uwv, a left context operator ◁D states that u is of the form described by D, while the extended left context operator ⊴E states that uw is described by E. This paper establishes a normal form for these grammars, in which extended left contexts are never used, while left contexts may be applied only for individual symbols, so that all rules are of the form A → B1C1 &⋯& BnCn or A → a & ◁D. This eliminates circular dependencies in the grammar and allows simplifying the known parsing algorithm. Some further improvements to the algorithm accelerate it from time O(n3) to time O(n3/log n).
Original language | English |
---|---|
Title of host publication | Descriptional Complexity of Formal Systems - 15th International Workshop, DCFS 2013, Proceedings |
Pages | 205-216 |
Number of pages | 12 |
DOIs | |
State | Published - 2013 |
Externally published | Yes |
Event | 15th International Workshop on Descriptional Complexity of Formal Systems, DCFS 2013 - London, ON, Canada Duration: 22 Jul 2013 → 25 Jul 2013 |
Name | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|
Volume | 8031 LNCS |
ISSN (Print) | 0302-9743 |
ISSN (Electronic) | 1611-3349 |
Conference | 15th International Workshop on Descriptional Complexity of Formal Systems, DCFS 2013 |
---|---|
Country/Territory | Canada |
City | London, ON |
Period | 22/07/13 → 25/07/13 |
ID: 78945181