Project: expression-editor
Task (moderate): Refactor `parse` in `parser.js`, throw SyntaxError if input doesn't conform to the syntax rules.

If user input doesn't conform to the current syntax rules, display an error message showing "Syntax Error" below the editor element.

Syntax error validation should be real-time as the user types.

The element showing "Syntax Error" has a red background.