feat: add unop% term parser

We not to support unary minus at `BinOp.toTree`

see #1779
This commit is contained in:
Leonardo de Moura 2022-10-26 06:18:52 -07:00
parent a086d217a5
commit 00ca0dde5c

View file

@ -491,6 +491,8 @@ def matchAltsWhereDecls := leading_parser
"binop% " >> ident >> ppSpace >> termParser maxPrec >> termParser maxPrec
@[builtin_term_parser] def binop_lazy := leading_parser
"binop_lazy% " >> ident >> ppSpace >> termParser maxPrec >> termParser maxPrec
@[builtin_term_parser] def unop := leading_parser
"unop% " >> ident >> ppSpace >> termParser maxPrec
@[builtin_term_parser] def forInMacro := leading_parser
"for_in% " >> termParser maxPrec >> termParser maxPrec >> termParser maxPrec