This file contains hidden or 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
projectsEvaluated { | |
rootProject.allprojects { | |
buildscript.repositories { | |
resolverNames = [] | |
mavenRepo name: 'plugins-repo', urls: 'http://repository.example.org/plugins' | |
} | |
repositories { | |
resolverNames = [] | |
mavenRepo name: 'libs-repo', urls: 'http://repository.example.org/libs' |
This file contains hidden or 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
class Machine { | |
def states, accept, initialState, sigma, blank, gamma | |
def transitions = [:].withDefault{[:]} | |
def validate() { | |
def actions = transitions.values()*.values() | |
def usedchars = transitions.values()*.keySet().sum() + actions.write.sum() | |
assert states.containsAll(transitions.keySet() + actions.newState.sum()), | |
"transitions should only contain known states" |
OlderNewer