MIOLO20
|
Membros públicos | |
setInput ($input) | |
reset () | |
resetPeek () | |
resetPosition ($position=0) | |
isNextToken ($token) | |
moveNext () | |
skipUntil ($type) | |
isA ($value, $token) | |
peek () | |
glimpse () | |
getLiteral ($token) | |
Campos de Dados | |
$lookahead | |
$token | |
Membros protegidos | |
scan ($input) | |
getCatchablePatterns () | |
getNonCatchablePatterns () | |
getType (&$value) | |
Base class for writing simple lexers, i.e. for creating small DSLs.
|
abstractprotected |
getLiteral | ( | $token | ) |
|
abstractprotected |
|
abstractprotected |
Retrieve token type. Also processes the token value if necessary.
string | $value |
Reimplementado em Lexer.
glimpse | ( | ) |
isA | ( | $value, | |
$token ) |
isNextToken | ( | $token | ) |
moveNext | ( | ) |
Moves to the next token in the input string.
A token is an associative array containing three items:
peek | ( | ) |
resetPosition | ( | $position = 0 | ) |
|
protected |
setInput | ( | $input | ) |
skipUntil | ( | $type | ) |