removed debugging code

- removed infinite loop prevention
- moved lalr code to lalr module (again).
- the lalr state is now read from the stack instead of using the state
variable