Syntax highlighting and parse error linting mode for your own language

Hi all!

I wrote an article about the way we parse a custom programming language in the browser at Desmos.

I think this will be of particular interest to folks here, since I wrote a starter parsing playground to illustrate the article. This includes a custom mode for CodeMirror that provides syntax highlighting, and hooks up parse errors to the linting plugin.

I think it will be a great starting point to anyone who wants to create their own browser-based programming environment, or to create a mode for an existing language.

1 Like