par
parser for Ilusm
Load with: use par
Quick example
use par
result = prsrn(10)
prn(result)
Functions
Functions
prsrn(tokens)
Performs the operation. Takes tokens.
peek(p)
Performs the operation. Takes p.
advnc(p)
Performs the operation. Takes p.
check(p, type)
Performs the operation. Takes p, type.
mtcht(p, type)
Performs the operation. Takes p, type.
expct(p, type)
Performs the operation. Takes p, type.
nodnw(type)
Performs the operation. Takes type.
prsxp(p)
Performs the operation. Takes p.
parsr(p)
Performs the operation. Takes p.
prsnd(p)
Performs the operation. Takes p.
prsql(p)
Performs the operation. Takes p.
prscm(p)
Performs the operation. Takes p.
prsdd(p)
Performs the operation. Takes p.
prsml(p)
Performs the operation. Takes p.
prsnr(p)
Performs the operation. Takes p.
prsps(p)
Performs the operation. Takes p.
prspr(p)
Processes or prints. Takes p.
prsst(p)
Sets a value or starts a process. Takes p.
prsp0(tokens)
Performs the operation. Takes tokens.
Notes
- Parser combinators - build parsers by composing smaller ones.