Parses the specified grammar.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
str |
string | The grammar to parse. | |
filename |
string |
<optional> |
The filename being parsed. Currently unused. |
Returns:
The number of parse errors.
- Type
- number
Requires
- module:jscc/global
- module:jscc/regex
- module:jscc/tabgen
- module:jscc/log/log