English

Grammars with two-sided contexts

Formal Languages and Automata Theory 2014-05-23 v1

Abstract

In a recent paper (M. Barash, A. Okhotin, "Defining contexts in context-free grammars", LATA 2012), the authors introduced an extension of the context-free grammars equipped with an operator for referring to the left context of the substring being defined. This paper proposes a more general model, in which context specifications may be two-sided, that is, both the left and the right contexts can be specified by the corresponding operators. The paper gives the definitions and establishes the basic theory of such grammars, leading to a normal form and a parsing algorithm working in time O(n^4), where n is the length of the input string.

Keywords

Cite

@article{arxiv.1405.5598,
  title  = {Grammars with two-sided contexts},
  author = {Mikhail Barash and Alexander Okhotin},
  journal= {arXiv preprint arXiv:1405.5598},
  year   = {2014}
}

Comments

In Proceedings AFL 2014, arXiv:1405.5272

R2 v1 2026-06-22T04:20:27.207Z