Added Example Rascal files

This commit is contained in:
Ahmad Salim Al-Sibahi
2016-11-29 23:37:34 +01:00
parent c87976330f
commit 4e6e58a099
4 changed files with 923 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
module Syntax
extend lang::std::Layout;
extend lang::std::Id;
start syntax Machine = machine: State+ states;
syntax State = @Foldable state: "state" Id name Trans* out;
syntax Trans = trans: Id event ":" Id to;