test: add trailing parser
This commit is contained in:
parent
d9c6624a0a
commit
d0f7467c95
1 changed files with 6 additions and 1 deletions
|
|
@ -1,9 +1,14 @@
|
|||
new_frontend
|
||||
|
||||
syntax term "+++":60 term:59 : term
|
||||
|
||||
syntax "<|" term "|>" : term
|
||||
|
||||
macro
|
||||
| `(<| $x |>) => `($x + 1)
|
||||
| `($a +++ $b) => `($a + $b + $b)
|
||||
|
||||
macro
|
||||
| `(<| $x |>) => `($x +++ 1)
|
||||
|
||||
#check <| 2 |>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue