Separate LR state machine builder from state machine class
Make char-class rules all instances of the same class
Make classes for state machine actions
Add code generation for state transitions and actions