Results of 1 - 8 of about 8 for sigil (0.001 sec.)
- Parser examples | PHP 8.3 12760
- Parser examples 例1 Simple calculator <?php use Parle \{ Parser , ParserException , Lexer , Token }; $p = new Parser ; $p -> token ( "INTEGER" ); $p -> left ( "'+' '-' '*' '/'" ); $p -> push ( "start" , "exp" ); $prod_add = $p -> push ( "ex
... se Parser :: ACTION_ACCEPT : break; case Parser :: ACTION_REDUCE : switch ( $p -> reduceId ) { case $prod_add : $l = $p -> sigil ( 0 ); $r = $p -> sigil ( 2 ); echo " $l + $r = " . ( $l + $r ) . "\n" ; break; case $prod_sub : $l = $p -> sigil ( 0 ); $ ... r = $p -> sigil ( 2 ); echo " $l - $r = " . ( $l - $r ) . "\n" ; break; case $prod_mul : $l = $p -> sigil ( 0 ); $r = $p -> sigil ( 2 ); e ... cho " $l * $r = " . ( $l * $r ) . "\n" ; break; case $prod_div : $l = $p -> sigil ( 0 ); $r = $p -> sigil ( 2 ); echo " $l / $r = " . ( $l / $r ) . "\n" ; break; } break; } $p -> advance (); } } 例2 Parse ...
-
https://man.mtool.work/php/8.3/parle.examples.parser.html
- Parle\Parser::sigil — Retrieve a matching part of a rule | PHP 8.3 10410
- Parle\Parser::sigil (PECL parle >= 0.5.1) Parle\Parser::sigil — Retrieve a matching part of a rule 説明 public function Parle\Parser::sigil ( int $idx ): string Retrieve a part of the match by a rule. This method is equivalent to the pseudo
...
-
https://man.mtool.work/php/8.3/parle-parser.sigil.html
- Parle\RParser::sigil — Retrieve a matching part of a rule | PHP 8.3 10410
- Parle\RParser::sigil (PECL parle >= 0.7.0) Parle\RParser::sigil — Retrieve a matching part of a rule 説明 public function Parle\RParser::sigil ( int $idx = ? ): string Retrieve a part of the match by a rule. This method is equivalent to the
...
-
https://man.mtool.work/php/8.3/parle-rparser.sigil.html
- The Parle\Parser class | PHP 8.3 7880
- The Parle\Parser class (PECL parle >= 0.5.1) はじめに Parser class. Rules can be defined on the fly. Once finalized, a Parle\Lexer instance is required to deliver the token stream. クラス概要 class Parle\Parser { /* 定数 */ const int ACTION
... $rule ): int public function reset ( int $tokenId = ? ): void public function right ( string $tok ): void public function sigil ( int $idx ): string public function sigilCount (): int public function sigilName ( int $idx ): string public function tok ... 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 ...
-
https://man.mtool.work/php/8.3/class.parle-parser.html
- The Parle\RParser class | PHP 8.3 7880
- The Parle\RParser class (PECL parle >= 0.7.0) はじめに Parser class. Rules can be defined on the fly. Once finalized, a Parle\RLexer instance is required to deliver the token stream. クラス概要 class Parle\RParser { /* 定数 */ const int ACT
... $rule ): int public function reset ( int $tokenId = ? ): void public function right ( string $tok ): void public function sigil ( int $idx = ? ): string public function sigilCount (): int public function sigilName ( int $idx ): string public function ... e 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::sigilNa ...
-
https://man.mtool.work/php/8.3/class.parle-rparser.html
- Parle\Parser::sigilName — Retrieve a rule or token name | PHP 8.3 7717
- Parle\Parser::sigilName (PECL parle >= 0.8.4) Parle\Parser::sigilName — Retrieve a rule or token name 説明 public function Parle\Parser::sigilName ( int $idx ): string Retrieve a partial rule name or token name corresponding to the sigil in
...
-
https://man.mtool.work/php/8.3/parle-parser.sigilname.html
- Parle\RParser::sigilName — Retrieve a rule or token name | PHP 8.3 7717
- Parle\RParser::sigilName (PECL parle >= 0.8.4) Parle\RParser::sigilName — Retrieve a rule or token name 説明 public function Parle\RParser::sigilName ( int $idx ): string Retrieve a partial rule name or token name corresponding to the sigil
...
-
https://man.mtool.work/php/8.3/parle-rparser.sigilname.html
- Parsing and lexing | PHP 8.3 7464
- Parsing and lexing はじめに 警告 この拡張モジュールは、 実験的 なものです。この拡張モジュールの動作・ 関数名・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 このモジュールは自己
... 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 ... e 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::sigilNa ...
-
https://man.mtool.work/php/8.3/book.parle.html
PREV
1
NEXT