File modules/dsl/ast/DslReturn.class.php
Last commit: Sun May 29 16:56:40 2022 +0200 Jan Dankert New: DSL with support for functions with return values, full arithmetic, object properties
1 <?php 2 3 namespace dsl\ast; 4 5 class DslReturn implements DslStatement 6 { 7 private $value; 8 9 public function __construct( $expressionTokens ) 10 { 11 $this->value = new DslExpression( $expressionTokens ); 12 } 13 14 public function execute( & $context ) { 15 16 return $this->value->execute( $context ); 17 } 18 19 public function parse($tokens) 20 { 21 } 22 }
Downloadmodules/dsl/ast/DslReturn.class.php
History Sun, 29 May 2022 16:56:40 +0200 Jan Dankert New: DSL with support for functions with return values, full arithmetic, object properties Sat, 28 May 2022 18:00:13 +0200 Jan Dankert New: DSL with a much better syntax parsing and support for assignments, conditions, ... Wed, 25 May 2022 22:47:17 +0200 Jan Dankert New: DSL (domain specific language) for code elements. The old way with PHP code ist not sandboxed and unsecure. This approach is a minimalistic, javascript-like, scripting engine. For now only simple function calls are possible, for example: alert("example");