feat: nested do parser
This commit is contained in:
parent
60e4f4fee1
commit
14414e3400
1 changed files with 1 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ Note that parser priorities would not solve this problem since the `doIf` parser
|
|||
parser is succeeding.
|
||||
-/
|
||||
@[builtinDoElemParser] def doExpr := parser! notFollowedByRedefinedTermToken >> termParser
|
||||
@[builtinDoElemParser] def doNested := parser! "do " >> doSeq
|
||||
|
||||
@[builtinTermParser] def «do» := parser!:maxPrec "do " >> doSeq
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue