Downloads
Documentation
Get Involved
Help
Search docs
PHP 8.4.2 Released!
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Вступ »
« CommonMark\Render\XML
Посібник з PHP
Довідник функцій
Обробка тексту
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Parsing and lexing
Вступ
Встановлення/налаштування
Вимоги
Встановлення
Попередньо визначені константи
Pattern matching
— Parle pattern matching
Приклади
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.
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google