Lexer
in package
Lexer class
Ported from https://github.com/zaach/jsonlint
Table of Contents
- $match : mixed
- $yyleng : mixed
- $yylineno : mixed
- $yylloc : mixed
- $yytext : mixed
- $conditions : mixed
- $conditionStack : mixed
- $done : mixed
- $EOF : mixed
- $input : mixed
- $more : mixed
- $offset : mixed
- $rules : mixed
- getFullUpcomingInput() : mixed
- getPastInput() : mixed
- getUpcomingInput() : mixed
- lex() : mixed
- setInput() : mixed
- showPosition() : mixed
- parseError() : mixed
- getCurrentRules() : mixed
- next() : mixed
- performAction() : mixed
Properties
$match
public
mixed
$match
$yyleng
public
mixed
$yyleng
$yylineno
public
mixed
$yylineno
$yylloc
public
mixed
$yylloc
$yytext
public
mixed
$yytext
$conditions
private
mixed
$conditions
= array("INITIAL" => array("rules" => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13), "inclusive" => true))
$conditionStack
private
mixed
$conditionStack
$done
private
mixed
$done
$EOF
private
mixed
$EOF
= 1
$input
private
mixed
$input
$more
private
mixed
$more
$offset
private
mixed
$offset
$rules
private
mixed
$rules
= array(0 => '/\G\s+/', 1 => '/\G-?([0-9]|[1-9][0-9]+)(\.[0-9]+)?([eE][+-]?[0-9]+)?\b/', 2 => '{\G"(?>\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^\0-\x1f\\"]++)*+"}', 3 => '/\G\{/', 4 => '/\G\}/', 5 => '/\G\[/', 6 => '/\G\]/', 7 => '/\G,/', 8 => '/\G:/', 9 => '/\Gtrue\b/', 10 => '/\Gfalse\b/', 11 => '/\Gnull\b/', 12 => '/\G$/', 13 => '/\G./')
Methods
getFullUpcomingInput()
public
getFullUpcomingInput() : mixed
Return values
mixed —getPastInput()
public
getPastInput() : mixed
Return values
mixed —getUpcomingInput()
public
getUpcomingInput() : mixed
Return values
mixed —lex()
public
lex() : mixed
Return values
mixed —setInput()
public
setInput(mixed $input) : mixed
Parameters
- $input : mixed
Return values
mixed —showPosition()
public
showPosition() : mixed
Return values
mixed —parseError()
protected
parseError(mixed $str, mixed $hash) : mixed
Parameters
- $str : mixed
- $hash : mixed
Return values
mixed —getCurrentRules()
private
getCurrentRules() : mixed
Return values
mixed —next()
private
next() : mixed
Return values
mixed —performAction()
private
performAction(mixed $avoiding_name_collisions, mixed $YY_START) : mixed
Parameters
- $avoiding_name_collisions : mixed
- $YY_START : mixed