File modules/dsl/ast/DslStatement.class.php

Last commit: Sat May 28 18:00:13 2022 +0200	Jan Dankert	New: DSL with a much better syntax parsing and support for assignments, conditions, ...
1 <?php 2 3 namespace dsl\ast; 4 5 use dsl\DslToken; 6 7 interface DslStatement 8 { 9 /** 10 * Parses a list of tokens. 11 * @param $tokens DslToken[] List of tokens 12 */ 13 public function parse( $tokens ); 14 15 16 /** 17 * Executes this statement. 18 * 19 * @param $context array Context of execution. 20 * @return mixed 21 */ 22 public function execute( & $context ); 23 24 }
Download modules/dsl/ast/DslStatement.class.php
History 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");