Questions tagged [packrat-parsing]
4 questions
52
votes
3 answers
What is packrat parsing?
I know and use bison/yacc. But in parsing world, there's a lot of buzz around packrat parsing.
What is it? Is it worth studing?

Łukasz Lew
- 48,526
- 41
- 139
- 208
1
vote
1 answer
Building a boolean logic parser in Scala with PackratParser
I am trying to build a Boolean logic parser e.g. A == B AND C == D to output something like And(Equals(A,B), Equals(C,D))
My parser has the following definitions:
def program: Parser[Operator] = {
phrase(operator)
}
def operator:…

Alexandru Barbarosie
- 2,952
- 3
- 24
- 46
1
vote
0 answers
Packrat Parser in Scala hangs indefinitely even though there are no elements left in input
I've a custom packrat parser written to handle some tokens. However when running the parser it hangs indefinitely even though all tokens were matched successfully by the parser. However changing the return type of one matcher to Parser from…

Kishore Bandi
- 5,537
- 2
- 31
- 52
0
votes
1 answer
Difficulty writing PEG recursive expression grammar with Arpeggio
My input text might have a simple statement like this:
aircraft
In my language I call this a name which represents a set of instances with various properties.
It yields an instance_set of all aircraft instances in this example.
I can apply a filter…

Leon Starr
- 480
- 1
- 4
- 10