File dsl/DslAstParser.class.php
Last commit: Sun Jun 26 15:47:05 2022 +0200 Jan Dankert Fetched from upstream.
1 <?php 2 namespace dsl; 3 4 use dsl\ast\DslStatementList; 5 6 /** 7 * Creates and interprets an abstract syntax tree (AST). 8 */ 9 class DslAstParser 10 { 11 /** 12 * @var DslStatementList 13 */ 14 public $rootStatement; 15 16 /** 17 * @throws DslParserException 18 */ 19 public function parse($tokens ) { 20 21 $this->rootStatement = new DslStatementList( $tokens ); 22 } 23 24 25 public function execute($context) 26 { 27 return $this->rootStatement->execute( $context ); 28 } 29 30 31 }
Downloaddsl/DslAstParser.class.php
History Sun, 26 Jun 2022 15:47:05 +0200 Jan Dankert Fetched from upstream. Mon, 6 Jun 2022 14:06:46 +0200 Jan Dankert First commit after fetching from upstream repo.