2014
DOI: 10.1016/j.scico.2012.11.006
|View full text |Cite
|
Sign up to set email alerts
|

From regexes to parsing expression grammars

Abstract: Most scripting languages nowadays use regex pattern-matching libraries. These regex libraries borrow the syntax of regular expressions, but have an informal semantics that is different from the semantics of regular expressions, removing the commutativity of alternation and adding ad-hoc extensions that cannot be expressed by formalisms for efficient recognition of regular languages, such as deterministic finite automata.Parsing Expression Grammars are a formalism that can describe all deterministic context-fre… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
14
0

Year Published

2014
2014
2020
2020

Publication Types

Select...
3
3
1

Relationship

3
4

Authors

Journals

citations
Cited by 19 publications
(14 citation statements)
references
References 10 publications
0
14
0
Order By: Relevance
“…Medeiros et al presented a formalization of regular expressions and PEGs, using the framework of natural semantics [10]. In this section, we present a formalization of PEGwUC, based on their work.…”
Section: Semanticsmentioning
confidence: 99%
See 2 more Smart Citations
“…Medeiros et al presented a formalization of regular expressions and PEGs, using the framework of natural semantics [10]. In this section, we present a formalization of PEGwUC, based on their work.…”
Section: Semanticsmentioning
confidence: 99%
“…A is a nonterminal and this is a placeholder for patterns of terminals in common with CFGs. Let a 10 be an input string. Then, intuitively, we consider the expression consumes a 10 .…”
Section: Introductionmentioning
confidence: 99%
See 1 more Smart Citation
“…Despite the differences, we can translate any regular expressions into an equivalent parsing expression using tricks described in Medeiros et al (2014). More importantly, DTDs, as described in Section 2, disallow non-deterministic regular expressions such as (a|ab)c and a * a, which behave differently in PEGs.…”
Section: Dtds Vs Pegsmentioning
confidence: 99%
“…Our presentation of PEGs is slightly different from Ford's [3], and comes from earlier work [12,13]. This style makes the exposition of our extensions, and their Empty String Fig.…”
Section: Parsing Expression Grammars and Left Recursionmentioning
confidence: 99%