schema: extract And clauses
This commit is contained in:
parent
218ca7a669
commit
40f20a3ca8
|
@ -136,7 +136,9 @@ const parser = peg("Schema", p: ParseState):
|
||||||
initRecord(toSymbol"lit", parsePreserves $1)]
|
initRecord(toSymbol"lit", parsePreserves $1)]
|
||||||
pushStack n
|
pushStack n
|
||||||
|
|
||||||
AndPattern <- ?('&' * S) * NamedPattern * +(S * '&' * S * NamedPattern)
|
AndPattern <- ?('&' * S) * NamedPattern * +(S * '&' * S * NamedPattern):
|
||||||
|
var node = initRecord(toSymbol("and"), toPreserve takeStackAt())
|
||||||
|
pushStack node
|
||||||
|
|
||||||
Pattern <- SimplePattern | CompoundPattern
|
Pattern <- SimplePattern | CompoundPattern
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue