This is an example for the Write a simple formula parser in JavaScript post.
This shows the editor, validator and evaluator all working together.