feat: add <<< and >>> abbreviating operations to default stream
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Resolves #16.
This commit is contained in:
Glen Whitney 2021-02-18 12:18:47 -08:00
parent 2772fd0c5c
commit 7d4d3b93c9
8 changed files with 37 additions and 12 deletions

View file

@ -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