-
-
Save jdmota/85683e518c56676612e4ba63eaa9b3f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select := id | id "." Select | |
JavaType := Select | JavaType "[]" | |
Package := "package" Select ";" | |
Import := "import" "static"? Select ("." "*")? ";" | |
Destination := id | State | DecisionState | |
Decision := id ":" ( id | State ) | |
DecisionState := "<" Decision ( "," Decision )* ">" | |
Arguments := "(" JavaType ( "," JavaType )* ")" | |
Method := JavaType id Arguments ":" Destination | |
Methods := Method ( "," Method )* | |
State := "{" Methods ( "," "drop" ":" "end" )? "}" | |
NamedState := id "=" State | |
Protocol := "typestate" id "{" NamedState* "}" | |
Start := Package? Import* Protocol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment