Parser Class
Abstract parser interface.
Constructor
Item Index
Methods
end
()
chainable
This method must be called by the parsing methods when the parsing has finished.
implement
(
Function
static
-
C
-
format
-
[base]
Makes the passed-in constructor inherit from Parser and registers it for the given format.
Parameters:
Returns:
Function:
The extended constructor.
parse
(
Object
static
-
data
-
fmt
-
[callback]
Parses data using a suitable parser.
See .formats
for a list of supported formats.
Parameters:
Returns:
Object:
The parse result.
parse
(
Object
-
[callback]
Starts the parsing process; in sync mode this method blocks until the parsing has finished, otherwise it should return immediately!
If given a callback, it must be bound to the end
and error
events.
Parameters:
-
[callback]
Function optional
Returns:
Object:
The parse result.
parse
()
verify
()
chainable
Verify that all syntactic and semantic requirements are met by the parsed entity.