« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for tokenIdToName (0.061 sec.)
Lexer examples | PHP 8.3 9414
Lexer examples 例1 Tokenize comma separated integer list <?php use Parle\Token ; use Parle\Lexer ; use Parle\LexerException ; /* name => id */ $token = array( "COMMA" => 1 , "CRLF" => 2 , "DECIMAL" => 3 , ); /* id => name */ $tokenIdToName ... ) { throw new LexerException ( "Unknown token ' { $tok -> value } ' at offset { $lex -> marker } ." ); } echo "TOKEN: " , $tokenIdToName [ $tok -> id ], PHP_EOL ; } while ( Token :: EOI != $tok -> id ); 例2 Tokenize assign statement <?php use Parle \{ Token , ...
https://man.mtool.work/php/8.3/parle.examples.lexer.html
PREV 1 NEXT