chore: Switch to this repository from predecessor
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9ecfa63f58
commit
7b00b01856
23 changed files with 733 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue