‪TYPO3CMS  ‪main
TokenType.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
25 enum ‪TokenType: int
26 {
27  case T_NONE = 0; // tokenizer internal handling
28 
29  case T_IDENTIFIER = 100; // single word left of an operator. 'foo.bar' are two identifiers
30  case T_VALUE = 200; // right side of an assignment, does not contain line breaks, also used as 'comment' body
31 
32  case T_OPERATOR_ASSIGNMENT = 300; // '='
33  case T_OPERATOR_REFERENCE = 301; // '=<'
34  case T_OPERATOR_COPY = 302; // '<'
35  case T_OPERATOR_UNSET = 303; // '>'
36  case T_OPERATOR_FUNCTION = 304; // ':='
37  case T_OPERATOR_ASSIGNMENT_MULTILINE_START = 310; // '('
38  case T_OPERATOR_ASSIGNMENT_MULTILINE_STOP = 311; // ')'
39 
40  case T_BLOCK_START = 400; // '{'
41  case T_BLOCK_STOP = 401; // '}'
42 
43  case T_DOT = 500; // '.' identifier separator
44 
45  case T_BLANK = 600; // list of ' ' and "\t"
46 
47  case T_NEWLINE = 700; // "\n" or "\r\n"
48 
49  case T_COMMENT_ONELINE_HASH = 800; // '#...'
50  case T_COMMENT_ONELINE_DOUBLESLASH = 801; // '//'
51  case T_COMMENT_MULTILINE_START = 802; // '/*'
52  case T_COMMENT_MULTILINE_STOP = 803; // '*/'
53 
54  case T_FUNCTION_NAME = 900; // 'addToList' and others
55  case T_FUNCTION_VALUE_START = 901; // '(' after T_FUNCTION_NAME
56  case T_FUNCTION_VALUE_STOP = 902; // ')' after T_FUNCTION_NAME
57 
58  case T_CONDITION_START = 1000; // '[' at start of line
59  case T_CONDITION_STOP = 1001; // ']' after '[' in same line, body is a T_VALUE
60  case T_CONDITION_ELSE = 1002; // 'ELSE' surrounded by '[' and ']'
61  case T_CONDITION_END = 1003; // 'END' surrounded by '[' and ']'
62  case T_CONDITION_GLOBAL = 1004; // 'GLOBAL' surrounded by '[' and ']'
63 
64  case T_CONSTANT = 1100; // '{$...}'
65 
66  case T_IMPORT_KEYWORD = 1200; // '@import'
67  case T_IMPORT_START = 1201; // ''' (tick) or '"' (doubletick) after @import
68  case T_IMPORT_STOP = 1202; // ''' (tick) or '"' (doubletick) after T_IMPORT_START
69 
70  case T_IMPORT_KEYWORD_OLD = 1300; // '<INCLUDE_TYPOSCRIPT:'
71  case ‪T_IMPORT_KEYWORD_OLD_STOP = 1301; // '>' after T_IMPORT_KEYWORD_OLD
72 }
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\T_IMPORT_KEYWORD_OLD_STOP
‪@ T_IMPORT_KEYWORD_OLD_STOP
Definition: TokenType.php:71
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token
Definition: AbstractToken.php:18
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenType
‪TokenType
Definition: TokenType.php:26