fix: notation for non reserved symbols
This commit is contained in:
parent
8fa5c0ddb9
commit
8751bbe2a8
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ namespace Syntax
|
|||
@[builtinSyntaxParser] def unary := parser! ident >> checkNoWsBefore >> "(" >> many1 syntaxParser >> ")"
|
||||
@[builtinSyntaxParser] def binary := parser! ident >> checkNoWsBefore >> "(" >> many1 syntaxParser >> ", " >> many1 syntaxParser >> ")"
|
||||
@[builtinSyntaxParser] def atom := parser! strLit
|
||||
@[builtinSyntaxParser] def nonReserved := parser! "!" >> strLit
|
||||
@[builtinSyntaxParser] def nonReserved := parser! "&" >> strLit
|
||||
|
||||
end Syntax
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
syntax "foo" !"bla" term : term
|
||||
syntax "foo" &"bla" term : term
|
||||
|
||||
macro_rules
|
||||
| `(foo bla $x) => x
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue