Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 35) sorted by relevance

12

/template/twigstarter/vendor/twig/twig/src/
H A DExpressionParser.php51 private $parser; variable in Twig\\ExpressionParser
58 $this->parser = $parser;
74 $this->parser->getStream()->next();
103 $stream = $this->parser->getStream();
162 $this->parser->getStream()->next();
168 $this->parser->getStream()->next();
294 $stream = $this->parser->getStream();
322 $stream = $this->parser->getStream();
347 $stream = $this->parser->getStream();
427 if (!$this->parser->getParent() && !$this->parser->hasTraits()) {
[all …]
H A DEnvironment.php54 private $parser; variable in Twig\\Environment
544 public function setParser(Parser $parser) argument
546 $this->parser = $parser;
558 if (null === $this->parser) {
559 $this->parser = new Parser($this);
562 return $this->parser->parse($stream);
726 public function addTokenParser(TokenParserInterface $parser) argument
728 $this->extensionSet->addTokenParser($parser);
753 foreach ($this->getTokenParsers() as $parser) {
754 $tags[$parser->getTag()] = $parser;
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DBlockTokenParser.php35 $stream = $this->parser->getStream();
37 if ($this->parser->hasBlock($name)) {
38 …printf("The block '%s' has already been defined line %d.", $name, $this->parser->getBlock($name)->…
40 $this->parser->setBlock($name, $block = new BlockNode($name, new Node([]), $lineno));
41 $this->parser->pushLocalScope();
42 $this->parser->pushBlockStack($name);
45 $body = $this->parser->subparse([$this, 'decideBlockEnd'], true);
55 new PrintNode($this->parser->getExpressionParser()->parseExpression(), $lineno),
61 $this->parser->popBlockStack();
62 $this->parser->popLocalScope();
H A DImportTokenParser.php27 $macro = $this->parser->getExpressionParser()->parseExpression();
28 $this->parser->getStream()->expect(/* Token::NAME_TYPE */ 5, 'as');
29 …$var = new AssignNameExpression($this->parser->getStream()->expect(/* Token::NAME_TYPE */ 5)->getV…
30 $this->parser->getStream()->expect(/* Token::BLOCK_END_TYPE */ 3);
32 $this->parser->addImportedSymbol('template', $var->getAttribute('name'));
34 …return new ImportNode($macro, $var, $token->getLine(), $this->getTag(), $this->parser->isMainScope…
H A DExtendsTokenParser.php28 $stream = $this->parser->getStream();
30 if ($this->parser->peekBlockStack()) {
32 } elseif (!$this->parser->isMainScope()) {
36 if (null !== $this->parser->getParent()) {
39 $this->parser->setParent($this->parser->getExpressionParser()->parseExpression());
H A DMacroTokenParser.php32 $stream = $this->parser->getStream();
35 $arguments = $this->parser->getExpressionParser()->parseArguments(true, true);
38 $this->parser->pushLocalScope();
39 $body = $this->parser->subparse([$this, 'decideBlockEnd'], true);
47 $this->parser->popLocalScope();
50 …$this->parser->setMacro($name, new MacroNode($name, new BodyNode([$body]), $arguments, $lineno, $t…
H A DIfTokenParser.php36 $expr = $this->parser->getExpressionParser()->parseExpression();
37 $stream = $this->parser->getStream();
39 $body = $this->parser->subparse([$this, 'decideIfFork']);
48 $else = $this->parser->subparse([$this, 'decideIfEnd']);
52 $expr = $this->parser->getExpressionParser()->parseExpression();
54 $body = $this->parser->subparse([$this, 'decideIfFork']);
H A DFromTokenParser.php27 $macro = $this->parser->getExpressionParser()->parseExpression();
28 $stream = $this->parser->getStream();
49 $var = new AssignNameExpression($this->parser->getVarName(), $token->getLine());
50 …$node = new ImportNode($macro, $var, $token->getLine(), $this->getTag(), $this->parser->isMainScop…
53 $this->parser->addImportedSymbol('function', $alias, 'macro_'.$name, $var);
H A DAbstractTokenParser.php26 protected $parser; variable in Twig\\TokenParser\\AbstractTokenParser
28 public function setParser(Parser $parser) argument
30 $this->parser = $parser;
H A DApplyTokenParser.php32 $name = $this->parser->getVarName();
37 … $filter = $this->parser->getExpressionParser()->parseFilterExpressionRaw($ref, $this->getTag());
39 $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
40 $body = $this->parser->subparse([$this, 'decideApplyEnd'], true);
41 $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
H A DFilterTokenParser.php33 $stream = $this->parser->getStream();
38 $name = $this->parser->getVarName();
41 … $filter = $this->parser->getExpressionParser()->parseFilterExpressionRaw($ref, $this->getTag());
44 $body = $this->parser->subparse([$this, 'decideBlockEnd'], true);
48 $this->parser->setBlock($name, $block);
H A DForTokenParser.php39 $stream = $this->parser->getStream();
40 $targets = $this->parser->getExpressionParser()->parseAssignmentExpression();
42 $seq = $this->parser->getExpressionParser()->parseExpression();
48 $ifexpr = $this->parser->getExpressionParser()->parseExpression();
52 $body = $this->parser->subparse([$this, 'decideForFork']);
55 $else = $this->parser->subparse([$this, 'decideForEnd'], true);
H A DSetTokenParser.php33 $stream = $this->parser->getStream();
34 $names = $this->parser->getExpressionParser()->parseAssignmentExpression();
38 $values = $this->parser->getExpressionParser()->parseMultitargetExpression();
54 $values = $this->parser->subparse([$this, 'decideBlockEnd'], true);
H A DEmbedTokenParser.php26 $stream = $this->parser->getStream();
28 $parent = $this->parser->getExpressionParser()->parseExpression();
47 $module = $this->parser->parse($stream, [$this, 'decideBlockEnd'], true);
54 $this->parser->embedTemplate($module);
H A DWithTokenParser.php26 $stream = $this->parser->getStream();
31 $variables = $this->parser->getExpressionParser()->parseExpression();
37 $body = $this->parser->subparse([$this, 'decideWithEnd'], true);
H A DIncludeTokenParser.php29 $expr = $this->parser->getExpressionParser()->parseExpression();
38 $stream = $this->parser->getStream();
49 $variables = $this->parser->getExpressionParser()->parseExpression();
H A DAutoEscapeTokenParser.php27 $stream = $this->parser->getStream();
32 $expr = $this->parser->getExpressionParser()->parseExpression();
40 $body = $this->parser->subparse([$this, 'decideBlockEnd'], true);
H A DUseTokenParser.php35 $template = $this->parser->getExpressionParser()->parseExpression();
36 $stream = $this->parser->getStream();
62 … $this->parser->addTrait(new Node(['template' => $template, 'targets' => new Node($targets)]));
H A DDoTokenParser.php24 $expr = $this->parser->getExpressionParser()->parseExpression();
26 $this->parser->getStream()->expect(/* Token::BLOCK_END_TYPE */ 3);
H A DDeprecatedTokenParser.php31 $expr = $this->parser->getExpressionParser()->parseExpression();
33 $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
H A DSpacelessTokenParser.php33 $stream = $this->parser->getStream();
39 $body = $this->parser->subparse([$this, 'decideSpacelessEnd'], true);
H A DSandboxTokenParser.php33 $stream = $this->parser->getStream();
35 $body = $this->parser->subparse([$this, 'decideBlockEnd'], true);
/template/dwsimple/dwsimple/
H A Dsimple.php118 $this->parser = xml_parser_create();
119 xml_set_object($this->parser, $this);
120 xml_set_element_handler($this->parser, "startElement", "endElement");
121 xml_set_character_data_handler($this->parser, "cdata");
128 if (!xml_parse($this->parser, $data, feof($this->fp))) {
130 xml_error_string(xml_get_error_code($this->parser)),
131 xml_get_current_line_number($this->parser)));
134 xml_parser_free($this->parser);
136 function startElement($parser, $name, $attrs) { argument
157 function endElement($parser, $name) { argument
[all …]
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DStagingExtension.php73 public function addTokenParser(TokenParserInterface $parser) argument
75 if (isset($this->tokenParsers[$parser->getTag()])) {
76 … throw new \LogicException(sprintf('Tag "%s" is already registered.', $parser->getTag()));
79 $this->tokenParsers[$parser->getTag()] = $parser;
/template/twigstarter/vendor/composer/
H A DInstalledVersions.php113 …* @param VersionParser $parser Install composer/semver to have access to this class and func…
118 public static function satisfies(VersionParser $parser, $packageName, $constraint) argument
120 $constraint = $parser->parseConstraints($constraint);
121 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));

12