feat: Implement enters operator >> (#8)
All checks were successful
continuous-integration/drone/push Build is passing

Also adds parenthesization of fostr expressions.
  Recasts code generation in terms of bottomup processing
  of a local strategy.

  Resolves #1.

Co-authored-by: Glen Whitney <glen@studioinfinity.org>
Reviewed-on: #8
Co-Authored-By: Glen Whitney <glen@nobody@nowhere.net>
Co-Committed-By: Glen Whitney <glen@nobody@nowhere.net>
This commit is contained in:
Glen Whitney 2021-02-01 01:46:31 +00:00
parent 527f802793
commit 2e49065031
8 changed files with 100 additions and 36 deletions

View file

@ -18,10 +18,13 @@ context-free syntax
Ex.Stdio = <stdio>
Ex.Sum = {Ex "+"}+
Ex.Receives = [[Ex] << [Ex]] {left}
Ex.Enters = [[Ex] >> [Ex]] {left}
Ex = <(<Ex>)> {bracket}
context-free priorities
Ex.Sum
Ex.Enters
> Ex.Sum
> Ex.Receives,
// prevent cycle: no singletons