Home
last modified time | relevance | path

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

123

/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];
/php-src/ext/dom/tests/modern/css_selectors/
H A Dattribute.phpt33 test_helper($dom, 'a[tokens~="def"]');
34 test_helper($dom, 'a[tokens~="de"]');
35 test_helper($dom, 'a[tokens~="def ghi"]');
48 test_helper($dom, 'a[tokens~="DE" i]');
49 test_helper($dom, 'a[tokens~="DEF" i]');
84 --- Selector: a[tokens~="def"] ---
86 --- Selector: a[tokens~="de"] ---
87 --- Selector: a[tokens~="def ghi"] ---
115 --- Selector: a[tokens~="DE" i] ---
116 --- Selector: a[tokens~="DEF" i] ---
[all …]
/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/ext/dom/tests/modern/token_list/
H A Dsupports.phpt18 Attribute "class" does not define any supported tokens
/php-src/scripts/dev/
H A Dfind_tested.php207 $tokens = token_get_all($r[1]);
208 $functions = array_filter($tokens, 'filter_functions');
/php-src/ext/dom/lexbor/lexbor/css/syntax/
H A Dtokenizer.c82 tkz->tokens = lexbor_dobject_create(); in lxb_css_syntax_tokenizer_init()
83 status = lexbor_dobject_init(tkz->tokens, 128, in lxb_css_syntax_tokenizer_init()
141 lexbor_dobject_clean(tkz->tokens); in lxb_css_syntax_tokenizer_clean()
163 if (tkz->tokens != NULL) { in lxb_css_syntax_tokenizer_destroy()
164 tkz->tokens = lexbor_dobject_destroy(tkz->tokens, true); in lxb_css_syntax_tokenizer_destroy()
/php-src/ext/tokenizer/
H A Dtokenizer.c386 zval *tokens; member
428 ctx->tokens, token, (unsigned char *) text, length, line, ctx->token_class, NULL); in on_event()
431 HashTable *tokens_ht = Z_ARRVAL_P(ctx->tokens); in on_event()
445 add_token(ctx->tokens, T_INLINE_HTML, LANG_SCNG(yy_cursor), in on_event()
472 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.phpt38 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

Completed in 36 milliseconds

123