28a29
> from slicc.symbols.State import WildcardState
38c39,51
< self.nextState = machine.states[nextState]
---
> if nextState == '*':
> # check to make sure there is a getNextState function declared
> found = False
> for func in machine.functions:
> if func.c_ident == 'getNextState':
> found = True
> break
> if found == False:
> fatal("Machine uses a wildcard transition without getNextState defined")
> self.nextState = WildcardState(machine.symtab,
> '*', location)
> else:
> self.nextState = machine.states[nextState]