Parvis

A parse visualizer.

A generalized tree-viewer Javascript tool capable of rendering nested arrays into html. The presentation is manipulated mostly using CSS, with some Javascript hooks and others planned for future versions.

tree-viewer tool screen shot

Arrays (called trees) must be in the form:

tree := `[` string `,` string `]` | `[` string? tree+ `]`

Note that empty arrays and objects other than arrays and strings are currently not supported. The first string is understood to represent a production rule symbol, and the second a terminal symbol.

You can use JSON.parse() to turn suitable strings into arrays for input purposes, as is done in the tool.

Tools and examples

Documentation

Coming in v 0.2

In the meantime, if you are interested, I suggest you join the Logical Languages Lodge server on Discord and follow the Parvis thread found there.