Class Index | File Index

Classes


Class regex_parser

The regex_parser class is an auto-generated parser class built from the grammar regex_parser.par.
Defined in: regex_parser.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
The debug steps if the parse method was called with _dbg_withtrace set to true
 
If set to true, the parser will generate debug information into _dbg_string
Method Summary
Method Attributes Method Name and Description
 
compile(str, caseInsensitive, multiline, global)
Compiles the provided regexp, and returns the resulting tree, if succesfull, or an error string.
 
parse(src, err_off, err_la, alert_func)
Parses the provided string and returns the number of errors
Class Detail
regex_parser()
Field Detail
{String} _dbg_string
The debug steps if the parse method was called with _dbg_withtrace set to true

{Boolean} _dbg_withtrace
If set to true, the parser will generate debug information into _dbg_string
Method Detail
{String|Matcher} compile(str, caseInsensitive, multiline, global)
Compiles the provided regexp, and returns the resulting tree, if succesfull, or an error string.
Parameters:
{String} str
The regexp string to parse
caseInsensitive
multiline
global
Returns:
{String|Matcher} The error string if any error occured while parsing, or the resulting root matcher

{Number} parse(src, err_off, err_la, alert_func)
Parses the provided string and returns the number of errors
Parameters:
{String} src
The input string to parse
{Array} err_off
An instance of array that will receive the individual error offsets
{Array} err_la
An instance of array that will receive the individual error
{function} alert_func
Called with debug information as a first parameter. Set to false to inhibit display. Defaults to alert.
Returns:
{Number} The number of errors that occured while parsing

Documentation generated by JsDoc Toolkit 2.0.2 on Mon May 02 2016 20:27:56 GMT+0200 (CEST)