feat: add <<< and >>> abbreviating operations to default stream
Resolves #16.
This commit is contained in:
parent
2772fd0c5c
commit
7d4d3b93c9
8 changed files with 37 additions and 12 deletions
|
@ -42,14 +42,18 @@ context-free syntax
|
|||
Ex.Stream = <stream>
|
||||
Ex.Sum = <<Ex> + <Ex>> {left}
|
||||
Ex.Gets = [[Ex] << [Ex]] {left}
|
||||
Ex.DefGets = [<<< [Ex]]
|
||||
Ex.To = [[Ex] >> [Ex]] {left}
|
||||
Ex.DefTo = [[Ex] >>>]
|
||||
|
||||
Ex = <(<Ex>)> {bracket}
|
||||
|
||||
context-free priorities
|
||||
|
||||
Ex.To
|
||||
> Ex.DefTo
|
||||
> Ex.Sum
|
||||
> Ex.DefGets
|
||||
> Ex.Gets,
|
||||
|
||||
// prevent cycle: no singletons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue