python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to write a peg used in lpeg to parse lua itself?
As title say, I know lua has a offical extended BNF in The Complete Syntax of Lua. I want to write a PEG to pass to lpeg.re.compile to parse lua itself. Maybe the Lua PEG is something like it's BNF. I...
rangercyh
Votes: 0
Answers: 1
Is there a Tatsu or any PEG-format grammar available for the [g]awk language syntax?
As the subject asks, does anyone know of an existing Tatsu grammar (or at least a PEG-format grammar) for the [g]awk language?
I did already browse all existing Tatsu examples that I could find, and s...
pjfarley3
Votes: 0
Answers: 1
PEG Grammar Parsing, error when expression starts with negative number
I have the following PEG grammar defined:
Program = _{ SOI ~ Expr ~ EOF }
Expr = { UnaryExpr | BinaryExpr }
Term = _{Int | "(" ~ Expr ~ ")" }
UnaryExpr = { Operator ~ Term }
Bi...
Apollo
Votes: 0
Answers: 1
It is possible to express in PEG something like /\s(foo|bar|baz)\s.*/
A regular expression like /\s(foo|bar|baz)\s.*/ would match the following string:
football bartender bazooka baz to the end
^^^^^^^^^^^^^^^
Is it possible to make a Parsing ...
dimus
Votes: 0
Answers: 1