chore: Switch to this repository from predecessor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glen Whitney 2021-01-30 15:37:53 -08:00
parent 9ecfa63f58
commit 7b00b01856
23 changed files with 733 additions and 32 deletions

View file

@ -6,12 +6,27 @@ imports
context-free start-symbols
Start
Ex
context-free sorts
Start
Ex
context-free syntax
Start.Empty = <>
Ex.Int = INT
Ex.Stdio = <stdio>
Ex.Sum = {Ex "+"}+
Ex.Receives = [[Ex] << [Ex]] {left}
context-free priorities
Ex.Sum
> Ex.Receives,
// prevent cycle: no singletons
Ex.Sum <0> .> {Ex "+"}+ = Ex,
// flat: no Sum immediately in Sum:
{Ex "+"}+ = Ex <0> .> Ex.Sum,
{Ex "+"}+ = {Ex "+"}+ "+" Ex <2> .> Ex.Sum