Prev | Next |
Editing Grammars
If you need to write and edit a grammar for code imported in a new programming language, you can do so using the built-in Grammar Editor.
Access
Ribbon |
Code > Schema > Grammars |
Create and Edit Grammar
Field/Button |
Action |
See also |
---|---|---|
Open Grammar |
Display a browser through which you can locate and open the file containing the grammar you want to edit. |
|
Save |
Save the current file. |
|
Validate Grammar |
The grammar validation will run a series of tests on the current grammar to ensure its validity. Errors and warnings will be displayed informing you of both errors that will make the grammar unusable, and conditions where you might get unexpected results. |
|
Help |
Display this Help topic. |
Context Menu Options
Field/Button |
Action |
See also |
---|---|---|
Open File |
Display a browser through which you can locate and open the file containing the grammar you want to edit. |
|
Validate |
The grammar validation will run a series of tests on the current grammar to ensure its validity. Errors and warnings will be displayed informing you of both errors that will make the grammar unusable, and conditions where you might get unexpected results. |
|
Language |
The Grammar Editor defaults to normal Backus–Naur Form (nBNF). The mBNF option is also available. |
|
Line Numbers |
Turn line numbers on or off in the grammar editor. |
Learn more