« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 31 for Lexer (0.001 sec.)
The Parle\Lexer class | PHP 8.3 13200
The Parle\Lexer class (PECL parle >= 0.5.1) はじめに Single state lexer class. Lexemes can be defined on the fly. If the particular lexer instance is meant to be used with Parle\Parser , the token IDs need to be taken from there. Otherwise, ... arbitrary token IDs can be supplied. This lexer can give a certain performance advantage over Parle\RLexer , if no multiple states are required. Note, that Parle\RParser ... is not compatible with this lexer. クラス概要 class Parle\Lexer { /* 定数 */ const int ICASE = 1 ; const int DOT_NOT_LF = 2 ; const int DOT_NOT_CRLF = 4 ; c ... void public function push ( string $regex , int $id ): void public function reset ( int $pos ): void } 定義済み定数 Parle\Lexer::ICASE Parle\Lexer::DOT_NOT_LF Parle\Lexer::DOT_NOT_CRLF Parle\Lexer::SKIP_WS Parle\Lexer::MATCH_ZERO_LEN プロパティ bol S ...
https://man.mtool.work/php/8.3/class.parle-lexer.html
Parsing and lexing | PHP 8.3 12003
Parsing and lexing はじめに 警告 この拡張モジュールは、 実験的 なものです。この拡張モジュールの動作・ 関数名・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 このモジュールは自己 ... xing and parsing facilities. The implementation is based on » these libraries and requires a » C++14 capable compiler. The lexer is based on the regex matching, the parser is LALR(1). Lexers and parsers are generated on the fly and can be used immedia ... tion and processing are the implementer's task. Serialization and code generation are not supported by the extension, yet. Lexer analysis is a process of splitting a character sequence into a list of lexemes. The lexeme list can be then used for the s ... behavior modification of existing functions, even an own programming language and beyond. The helper methods such as Parle\Lexer::dump() to inspect the generated state machine, or Parle\Parser::dump() to inspect the generated grammar, are useful. The ...
https://man.mtool.work/php/8.3/book.parle.html
Parle\Lexer::push — Add a lexer rule | PHP 8.3 9949
Parle\Lexer::push (PECL parle >= 0.5.1) Parle\Lexer::push — Add a lexer rule 説明 public function Parle\Lexer::push ( string $regex , int $id ): void Push a pattern for lexeme recognition. パラメータ regex Regular expression used for token ... matching. id Token id. If the lexer instance is meant to be used standalone, this can be an arbitrary number. If the lexer instance is going to be passed to t ...
https://man.mtool.work/php/8.3/parle-lexer.push.html
The Parle\RLexer class | PHP 8.3 9900
The Parle\RLexer class (PECL parle >= 0.5.1) はじめに Multistate lexer class. Lexemes can be defined on the fly. If the particular lexer instance is meant to be used with Parle\RParser , the token IDs need to be taken from there. Otherwise, ... arbitrary token IDs can be supplied. Note, that Parle\Parser is not compatible with this lexer. クラス概要 class Parle\RLexer { /* 定数 */ const int ICASE = 1 ; const int DOT_NOT_LF = 2 ; const int DOT_NOT_CRLF = 4 ; ... te ): void public function pushState ( string $state ): int public function reset ( int $pos ): void } 定義済み定数 Parle\RLexer::ICASE Parle\RLexer::DOT_NOT_LF Parle\RLexer::DOT_NOT_CRLF Parle\RLexer::SKIP_WS Parle\RLexer::MATCH_ZERO_LEN プロパティ b ... ol Start of input flag. flags Lexer flags. state Current lexer state, readonly. marker Position of the latest token match, readonly. cursor Current input offs ...
https://man.mtool.work/php/8.3/class.parle-rlexer.html
Parle\Lexer::build — Finalize the lexer rule set | PHP 8.3 9318
Parle\Lexer::build (PECL parle >= 0.5.1) Parle\Lexer::build — Finalize the lexer rule set 説明 public function Parle\Lexer::build (): void Rules, previously added with Parle\Lexer::push() are finalized. This method call has to be done after ...
https://man.mtool.work/php/8.3/parle-lexer.build.html
Parle\Lexer::reset — Reset lexer | PHP 8.3 9188
Parle\Lexer::reset (PECL parle >= 0.7.1) Parle\Lexer::reset — Reset lexer 説明 public function Parle\Lexer::reset ( int $pos ): void Reset lexing optionally supplying the desired offset. パラメータ pos Reset position. 戻り値 値を返しません。 ...
https://man.mtool.work/php/8.3/parle-lexer.reset.html
Parle\Lexer::advance — Process next lexer rule | PHP 8.3 8865
Parle\Lexer::advance (PECL parle >= 0.5.1) Parle\Lexer::advance — Process next lexer rule 説明 public function Parle\Lexer::advance (): void Processes the next rule and prepares the resulting token data. パラメータ この関数にはパラメータはあ ...
https://man.mtool.work/php/8.3/parle-lexer.advance.html
Parle\Parser::consume — Consume the data for processing | PHP 8.3 8832
Parle\Parser::consume (PECL parle >= 0.5.1) Parle\Parser::consume — Consume the data for processing 説明 public function Parle\Parser::consume ( string $data , Parle\Lexer $lexer ): void Consume the data for parsing. パラメータ data Data to ... be parsed. lexer A lexer object containing the lexing rules prepared for the particular grammar. 戻り値 値を返しません。 他のマニュアルの関 ...
https://man.mtool.work/php/8.3/parle-parser.consume.html
Parle\Lexer::callout — Define token callback | PHP 8.3 8784
Parle\Lexer::callout (PECL parle >= 0.7.2) Parle\Lexer::callout — Define token callback 説明 public function Parle\Lexer::callout ( int $id , callable $callback ): void Define a callback to be invoked once lexer encounters a particular toke ...
https://man.mtool.work/php/8.3/parle-lexer.callout.html
Parle\Parser::validate — Validate input | PHP 8.3 8606
Parle\Parser::validate (PECL parle >= 0.5.1) Parle\Parser::validate — Validate input 説明 public function Parle\Parser::validate ( string $data , Parle\Lexer $lexer ): bool Validate an input string. The string is parsed internally, thus thi ... s method is useful for the quick input validation. パラメータ data String to be validated. lexer A lexer object containing the lexing rules prepared for the particular grammar. 戻り値 Returns bool witnessing whether the ...
https://man.mtool.work/php/8.3/parle-parser.validate.html
PREV 1 2 3 4 NEXT