▼
Packrat
:
Simple Packrat Parsing
1
Main
2
Combinator library
3
Parser syntax
4
Examples
5
Test suite
Index
On this page:
parse
← prev
up
next →
3
Parser syntax
(
require
(
planet
dvanhorn/packrat:1:1/parser
)
)
(
parse
id
(
[
nonterminal-id
(
sequence
body
body0
...
)
]
...
)
)
sequence
=
(
part
...
)
part
=
(
!
part
...
)
|
(
/
sequence
...
)
|
(
?
expr
)
|
id
:=
'
kind
|
id
:=
@
|
id
:=
nonterminal-id
|
id
:=
(
?
expr
)
|
nonterminal-id
← prev
up
next →