Janet 1.10.1-9cfc3d9 Documentation
(Other Versions:
1.9.1
1.8.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
)
PEG Module
See The peg documentation for more information.
Index
peg/compile cfunction
(peg/compile peg) Compiles a peg source data structure into a <core/peg>. This will speed up matching if the same peg will be used multiple times.Community Examples
peg/match cfunction
(peg/match peg text &opt start & args) Match a Parsing Expression Grammar to a byte string and return an array of captured values. Returns nil if text does not match the language defined by peg. The syntax of PEGs is documented on the Janet website.Community Examples