AECode Parser Functions Version 1
Define the working structure of the first version of the AECode.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
The new AECode will be aimed differently, instead of trying to be a completely new programming language, it will just provide basic IO functions, while the heavy processing is done through php scripts that are called from within the code.
There will be two different ways to call AECode to be executed: One through BBCode and the other one by placing the AECODE keyword inside certain text functions of different widgets.
BBCode: By placing the desired AECode between the [aecode] and [/aecode] tags.
Widgets: By writing AECODE:
This is the list of keywords:
PRINT - Returns the value of a certain variable or string.
SCRIPT - Runs the specified script.
The following considerations have to be taken into account:
- The keyword parsing is case insensitive.
- Variable names are called like this: @{VARIABLE_NAME}, where {VARIABLE_NAME} is the name of the variable to be extracted. In case the variable contains spaces within, @"{VARIABLE_NAME}" is also accepted.
- All scripts have to be stored in the AECore/
- & represents a variable or null amount of spaces.
- Multiple instructions can be joined together, separated by a semi-colon .
The syntax for calling AECode inside widgets is the following:
&AECODE&
This is the allowed syntax for {DESIRED_AECODE}:
&{INSTRUCTI
This is the allowed syntax for {INSTRUCTION}:
PRINT &{VARIABLE_NAME}
PRINT_
PRINT_
SCRIPT&
Each instruction is trimmed before it is processed, so trailing or ending whitespaces do not matter.
Work Items
Dependency tree
![](deptree.png)
* Blueprints in grey have been implemented.