evaluateOrder

fun evaluateOrder(startNode: Node, stopOnWrongBase: Boolean = true): Boolean

Checks if a sequence of Nodes/statements starting from startNode follows the sequence given by the dfa. If the sequence of statements violates the rules, the method returns false, if it is correct, the method returns true. The flag stopOnWrongBase makes the FSM stop evaluation of a base if an unexpected operation was observed for that base.