xLucene Parser: `Peg Engine Syntax Error`
peg-engine.SyntaxError
Hierarchy
Error
↳
SyntaxError
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new SyntaxError(message
, expected
, found
, location
): SyntaxError
Parameters
Name | Type | |
---|---|---|
message | string | |
expected | Expectation [] | |
found | null \ | string |
location | IFileRange |
Returns
Overrides
Error.constructor
Defined in
xlucene-parser/src/peg-engine.ts:160
Properties
expected
• expected: Expectation
[]
Defined in
xlucene-parser/src/peg-engine.ts:155
found
• found: null
| string
Defined in
xlucene-parser/src/peg-engine.ts:156
location
• location: IFileRange
Defined in
xlucene-parser/src/peg-engine.ts:157
message
• message: string
Overrides
Error.message
Defined in
xlucene-parser/src/peg-engine.ts:154
name
• name: string
Overrides
Error.name
Defined in
xlucene-parser/src/peg-engine.ts:158
Methods
format
▸ format(sources
): string
Parameters
Name | Type |
---|---|
sources | { grammarSource? : string ; text : string }[] |
Returns
string
Defined in
xlucene-parser/src/peg-engine.ts:178
buildMessage
▸ buildMessage(expected
, found
): string
Parameters
Name | Type | |
---|---|---|
expected | Expectation [] | |
found | null \ | string |
Returns
string
Defined in
xlucene-parser/src/peg-engine.ts:64