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_TAG = 'macroTag',
27: HTML_TAG_BEGIN = 'htmlTagBegin',
28: HTML_TAG_END = 'htmlTagEnd',
29: HTML_ATTRIBUTE = 'htmlAttribute',
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, HTML_TAG_BEGIN, HTML_ATTRIBUTE */
42: public $name;
43:
44: /** @var string MACRO_TAG, HTML_ATTRIBUTE */
45: public $value;
46:
47: /** @var string MACRO_TAG */
48: public $modifiers;
49:
50: /** @var bool HTML_TAG_BEGIN */
51: public $closing;
52:
53: }
54: