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 |
Develop > Source Code > Grammar Editor |
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. |
|
Recent |
Recently used grammars can be quickly accessed using this combo box. |
|
Save |
Save the current file. |
|
Save As |
Saves a copy of 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. |