A Parser and Lexer in Javascript