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: */
11:
12: namespace Nette\Latte;
13:
14: use Nette;
15:
16:
17:
18: /**
19: * Latte parser token.
20: *
21: * @author David Grudl
22: */
23: class Token extends Nette\Object
24: {
25: const TEXT = 'text',
26: MACRO = 'macro',
27: TAG_BEGIN = 'tag_begin',
28: TAG_END = 'tag_end',
29: ATTRIBUTE = 'attribute',
30: COMMENT = 'comment';
31:
32: /** @var int */
33: public $type;
34:
35: /** @var string */
36: public $text;
37:
38: /** @var int */
39: public $line;
40:
41: /** @var string MACRO, TAG_BEGIN, ATTRIBUTE */
42: public $name;
43:
44: /** @var string MACRO, ATTRIBUTE */
45: public $value;
46:
47: /** @var string MACRO */
48: public $modifiers;
49:
50: /** @var bool TAG_BEGIN */
51: public $closing;
52:
53: }
54: