Implement new grammar for expressions (simple calculator).