Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 49) sorted by relevance

12

/php-src/ext/tokenizer/tests/
H A DPhpToken_toString.phpt8 $tokens = PhpToken::tokenize('<?php echo "Hello ". $what;');
9 var_dump(implode($tokens));
11 var_dump($tokens[0] instanceof Stringable);
12 var_dump((string) $tokens[0]);
13 var_dump($tokens[0]->__toString());
H A Dattributes.phpt2 Attributes are exposed as tokens.
8 $tokens = token_get_all('<?php #[A1(1, 2)] class C1 { }');
10 $attr = $tokens[1];
15 $class = $tokens[2];
H A Dtoken_get_all_variation14.phpt9 * unknown tokens - T_UNKNOWN(307)
12 echo "*** Testing token_get_all() : with invalid/unknown tokens ***\n";
14 // with valid php tags and invalid tokens
15 echo "-- with valid PHP tags & invlid tokens --\n";
25 echo "-- with invlalid PHP open tag & valid tokens --\n";
30 // with invalid PHP tags and invalid tokens
31 echo "-- with invalid PHP tags and tokens --\n";
38 *** Testing token_get_all() : with invalid/unknown tokens ***
39 -- with valid PHP tags & invlid tokens --
243 -- with invlalid PHP open tag & valid tokens --
[all …]
H A Dbug81342.phpt8 $tokens = PhpToken::tokenize('<?php $x & $x; $x &
11 foreach ($tokens as $token) {
H A Dbug77966.phpt17 $tokens = PhpToken::tokenize($code, TOKEN_PARSE);
18 foreach ($tokens as $token) {
H A Dtoken_get_all_variation11.phpt2 Test token_get_all() function : usage variations - with control structure tokens
19 echo "*** Testing token_get_all() : for control structure tokens ***\n";
22 echo "-- with if..elseif..else..tokens --\n";
38 echo "-- with while..., do..while, switch & continue tokens --\n";
51 echo "-- with for..foreach( as ) tokens --\n";
63 echo "-- with switch...case tokens --\n";
74 *** Testing token_get_all() : for control structure tokens ***
75 -- with if..elseif..else..tokens --
428 -- with while..., do..while, switch & continue tokens --
650 -- with for..foreach( as ) tokens --
[all …]
H A Dtoken_get_all_TOKEN_PARSE_002.phpt7 $tokens = token_get_all('<?php
15 array_walk($tokens, function($tk) {
H A Dbug54089.phpt16 $tokens = token_get_all($code);
17 var_dump($tokens);
20 foreach ($tokens as $t)
H A Dtoken_get_all_TOKEN_PARSE_001.phpt7 $tokens = token_get_all('<?php
22 array_walk($tokens, function($tk) {
H A DPhpToken_methods.phpt18 $tokens = PhpToken::tokenize($code);
19 foreach ($tokens as $i => $token) {
25 $token = $tokens[5];
H A Dtoken_get_all_variation10.phpt2 Test token_get_all() function : usage variations - with constant tokens
12 * bool const (no tokens specified) - T_UNKNOWN(307)
13 * null const (no tokens specified) - T_UNKNOWN(307)
/php-src/ext/opcache/tests/jit/
H A Dfetch_dim_r_013.phpt10 $y = 0; $tokens = [];
12 $tokens[$y] > $tokens[$y][] = $y;
/php-src/.github/scripts/windows/
H A Dfind-target-branch.bat3 for /f "usebackq tokens=3" %%i in (`findstr PHP_MAJOR_VERSION main\php_version.h`) do set BRANCH=%%i
4 for /f "usebackq tokens=3" %%i in (`findstr PHP_MINOR_VERSION main\php_version.h`) do set BRANCH=%B…
/php-src/Zend/tests/
H A Dbug69758.phpt5 $tokens = array();
8 $tokens[$i] = $conditions;
H A Dbug76439_2.phpt2 Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens (er…
H A Dbug63882_2.phpt8 $tokens = $conditions;
H A Dbug76439.phpt2 Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens
/php-src/ext/pdo_mysql/tests/
H A Dbug41125.phpt89 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
127 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
133 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
143 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
157 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
163 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
H A Dbug79132.phpt53 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
54 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
/php-src/scripts/dev/
H A Dfind_tested.php211 $tokens = token_get_all($r[1]);
212 $functions = array_filter($tokens, 'filter_functions');
/php-src/ext/tokenizer/
H A Dtokenizer.c387 zval *tokens; member
429 ctx->tokens, token, (unsigned char *) text, length, line, ctx->token_class, NULL); in on_event()
432 HashTable *tokens_ht = Z_ARRVAL_P(ctx->tokens); in on_event()
446 add_token(ctx->tokens, T_INLINE_HTML, LANG_SCNG(yy_cursor), in on_event()
473 ctx.tokens = &token_stream; in tokenize_parse()
/php-src/docs/source/introduction/
H A Dhigh-level-overview.rst19 - Tokenization - splitting whole source files into words, called tokens.
20 - Parsing - building a tree structure from tokens, called AST (abstract syntax tree).
30 |> tokenizer -- tokens
69 this process. It takes a definition file and generates efficient C code to build these tokens from a
79 Parsing is the process of reading the tokens generated from the tokenizer and building a tree
83 tree structure from the tokens to more closely reflect the source code the way humans see it.
85 Here is a simplified example of what an AST from the tokens above might look like.
/php-src/ext/pdo_pgsql/tests/
H A Dbug70313.phpt39 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
/php-src/ext/filter/
H A Dlogical_filters.c980 int tokens, length, i, offset, exp_separator_set; in php_filter_validate_mac() local
998 tokens = 3; in php_filter_validate_mac()
1003 tokens = 6; in php_filter_validate_mac()
1008 tokens = 6; in php_filter_validate_mac()
1023 for (i = 0; i < tokens; i++) { in php_filter_validate_mac()
1026 if (i < tokens - 1 && input[offset + length] != separator) { in php_filter_validate_mac()
/php-src/ext/standard/tests/strings/
H A Dstrtok_variation6.phpt2 Test strtok() function : usage variations - invalid escape sequences as tokens
11 // defining arrays for input strings and tokens

Completed in 27 milliseconds

12