Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Parsing and lexing
Introduction
Installing/Configuring
Requirements
Installation
Predefined Constants
Pattern matching
— Parle pattern matching
Examples
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::sigilCount
— Number of elements in matched rule
Parle\Parser::sigilName
— Retrieve a rule or token name
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::sigilCount
— Number of elements in matched rule
Parle\RParser::sigilName
— Retrieve a rule or token name
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
Found A Problem?
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^