Fix parser shifit/reduce conflict. Add more complete support for stmt parse. Add repl reaction for emitted statements.