Lexer Implementation
- abstract protected function getRawRules() — Return a set of rules for this lexer. See description in @{class:PhutilLexer}.
Lexer Rules
- protected function getRules() — Process, normalize, and validate the raw lexer rules.
Lexer Tokens
- public function getTokens($input, $initial_state) — Lex an input string into tokens.
Other Methods
- public function __get($name)
- public function __set($name, $value)
- public function current()
- public function key()
- public function next()
- public function rewind()
- public function valid()
- private function throwOnAttemptedIteration()
- public function getPhobjectClassConstant($key, $byte_limit) — Read the value of a class constant.
- public function mergeTokens($tokens) — Merge adjacent tokens of the same type. For example, if a comment is tokenized as <"//", "comment">, this method will merge the two tokens into a single combined token.
- public function getLexerState()