Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Metaprogramming/Rascal/metaprogramming-1.rascal
Normal file
14
Task/Metaprogramming/Rascal/metaprogramming-1.rascal
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
extend ViewParseTree;
|
||||
|
||||
layout Whitespace = [\ \t\n]*;
|
||||
syntax A = "a";
|
||||
syntax B = "b";
|
||||
start syntax C = "c" | A C B;
|
||||
|
||||
layout Whitespace = [\ \t\n]*;
|
||||
lexical Integer = [0-9]+;
|
||||
start syntax E1 = Integer
|
||||
| E "*" E
|
||||
> E "+" E
|
||||
| "(" E ")"
|
||||
;
|
||||
Loading…
Add table
Add a link
Reference in a new issue