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 = 'macro',
25: TAG_BEGIN = 'tag_begin',
26: TAG_END = 'tag_end',
27: ATTRIBUTE = 'attribute',
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_BEGIN, ATTRIBUTE */
40: public $name;
41:
42: /** @var string MACRO, ATTRIBUTE */
43: public $value;
44:
45: /** @var string MACRO */
46: public $modifiers;
47:
48: /** @var bool TAG_BEGIN */
49: public $closing;
50:
51: }
52: