1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: * @package Nette\Latte
11: */
12:
13:
14:
15: /**
16: * Latte parser token.
17: *
18: * @author David Grudl
19: * @package Nette\Latte
20: */
21: class NLatteToken extends NObject
22: {
23: const TEXT = 'text',
24: MACRO_TAG = 'macroTag',
25: HTML_TAG_BEGIN = 'htmlTagBegin',
26: HTML_TAG_END = 'htmlTagEnd',
27: HTML_ATTRIBUTE = 'htmlAttribute',
28: COMMENT = 'comment';
29:
30: /** @var int */
31: public $type;
32:
33: /** @var string */
34: public $text;
35:
36: /** @var int */
37: public $line;
38:
39: /** @var string MACRO_TAG, HTML_TAG_BEGIN, HTML_ATTRIBUTE */
40: public $name;
41:
42: /** @var string MACRO_TAG, HTML_ATTRIBUTE */
43: public $value;
44:
45: /** @var string MACRO_TAG */
46: public $modifiers;
47:
48: /** @var bool HTML_TAG_BEGIN */
49: public $closing;
50:
51: }
52: