Introduction

NOTE: On initial load of the page, the Language list is loaded from the file config/directories.json: for each found language directory (config/languages/), an entry is generated -- on selection, the corresponing JSON file is attempted to be read and compiled.
Note, that there may not be a JSON file for the lanuage available -- in this case an error message will be shown on selection.

You can use the file selector, for loading a JSON grammar from the local file system

Alternatively, you can enter (e.g. copy&paste) a JSON-formatted grammar into the JSON Grammar Definition field and then press the parse button.


top

Compiled Parser Code:

This is the compiled JavaScript code for the grammar.

This code can be copied into a file: on loading (i.e. interpreting) the JavaScript file, the grammar will be registered with the SemanticInterpreter for the Grammar ID that is specified above in the Grammar Definition section.

The default location for the compiled JavaScript grammar files is
assets/www/gen/grammar/[Grammar ID]_grammar.json