« CommonMark\Render\XML
Einführung »
PHP Manual
Textverarbeitung
Parsing and lexing
Parsing and lexing
Einführung
Installation/Konfiguration
Anforderungen
Installation
Vordefinierte Konstanten
Pattern matching
— Parle pattern matching
Character representations
Character classes
Unicode character classes
Alternation and repetition
Anchors
Grouping
Beispiele
Lexer examples
Parser examples
Parle\Lexer
— The Parle\Lexer class
Parle\Lexer::advance
— Process next lexer rule
Parle\Lexer::build
— Finalize the lexer rule set
Parle\Lexer::callout
— Define token callback
Parle\Lexer::consume
— Pass the data for processing
Parle\Lexer::dump
— Dump the state machine
Parle\Lexer::getToken
— Retrieve the current token
Parle\Lexer::insertMacro
— Insert regex macro
Parle\Lexer::push
— Add a lexer rule
Parle\Lexer::reset
— Reset lexer
Parle\RLexer
— The Parle\RLexer class
Parle\RLexer::advance
— Process next lexer rule
Parle\RLexer::build
— Finalize the lexer rule set
Parle\RLexer::callout
— Define token callback
Parle\RLexer::consume
— Pass the data for processing
Parle\RLexer::dump
— Dump the state machine
Parle\RLexer::getToken
— Retrieve the current token
Parle\RLexer::insertMacro
— Insert regex macro
Parle\RLexer::push
— Add a lexer rule
Parle\RLexer::pushState
— Push a new start state
Parle\RLexer::reset
— Reset lexer
Parle\Parser
— The Parle\Parser class
Parle\Parser::advance
— Process next parser rule
Parle\Parser::build
— Finalize the grammar rules
Parle\Parser::consume
— Consume the data for processing
Parle\Parser::dump
— Dump the grammar
Parle\Parser::errorInfo
— Retrieve the error information
Parle\Parser::left
— Declare a token with left-associativity
Parle\Parser::nonassoc
— Declare a token with no associativity
Parle\Parser::precedence
— Declare a precedence rule
Parle\Parser::push
— Add a grammar rule
Parle\Parser::reset
— Reset parser state
Parle\Parser::right
— Declare a token with right-associativity
Parle\Parser::sigil
— Retrieve a matching part of a rule
Parle\Parser::token
— Declare a token
Parle\Parser::tokenId
— Get token id
Parle\Parser::trace
— Trace the parser operation
Parle\Parser::validate
— Validate input
Parle\RParser
— The Parle\RParser class
Parle\RParser::advance
— Process next parser rule
Parle\RParser::build
— Finalize the grammar rules
Parle\RParser::consume
— Consume the data for processing
Parle\RParser::dump
— Dump the grammar
Parle\RParser::errorInfo
— Retrieve the error information
Parle\RParser::left
— Declare a token with left-associativity
Parle\RParser::nonassoc
— Declare a token with no associativity
Parle\RParser::precedence
— Declare a precedence rule
Parle\RParser::push
— Add a grammar rule
Parle\RParser::reset
— Reset parser state
Parle\RParser::right
— Declare a token with right-associativity
Parle\RParser::sigil
— Retrieve a matching part of a rule
Parle\RParser::token
— Declare a token
Parle\RParser::tokenId
— Get token id
Parle\RParser::trace
— Trace the parser operation
Parle\RParser::validate
— Validate input
Parle\Stack
— The Parle\Stack class
Parle\Stack::pop
— Pop an item from the stack
Parle\Stack::push
— Push an item into the stack
Parle\Token
— The Parle\Token class
Parle\ErrorInfo
— The Parle\ErrorInfo class
Parle\LexerException
— The Parle\LexerException class
Parle\ParserException
— The Parle\ParserException class