alexprengere
Joined 13 years ago
Karma
36
Submissions
18
Member since
Mar 15
Joined 13 years ago
You define the syntax tree once, then parse, validate, or pretty-print messages against that structure. It works by converting the syntax tree to a state machine of possible transitions between segments.
All the Python code execution is happening in your browser using Pyodide (a port of CPython to WebAssembly), so once the page is loaded, it should work even without internet.
You can even use GitHub pages to serve this statically. So I did: https://alexprengere.github.io/python_playground/