feat: add binrel! parser
It is a helper macro for using binary relations such as `<` and `>`.
This commit is contained in:
parent
b0f1bfb580
commit
bf88656288
1 changed files with 2 additions and 0 deletions
|
|
@ -175,6 +175,8 @@ def matchAltsWhereDecls := parser! matchAlts >> optional whereDecls
|
|||
|
||||
@[builtinTermParser] def noindex := parser! "noindex!" >> termParser maxPrec
|
||||
|
||||
@[builtinTermParser] def binrel := parser! "binrel!" >> ident >> termParser maxPrec >> termParser maxPrec
|
||||
|
||||
@[builtinTermParser] def typeOf := parser! "typeOf! " >> termParser maxPrec
|
||||
@[builtinTermParser] def ensureTypeOf := parser! "ensureTypeOf! " >> termParser maxPrec >> strLit >> termParser
|
||||
@[builtinTermParser] def ensureExpectedType := parser! "ensureExpectedType! " >> strLit >> termParser maxPrec
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue