(A command line toolset for Linux, Mac and Windows)
What's new:
- I have now implemented all planned things for the KMP compiler/parser:
- Variables in different name spaces.
- Numeric expressions with integers, floats and vectors.
- Nested if..elif..else..endif.
- 5 kinds of nested loops.
- Includes. (new!)
- Many predefined functions.
- User defined macros and functions. (new!)
- Commands for special features.
- Conditional compiling controlled by command line settings.
For Details read the new online syntax and semantics documentation:
. - Variables in different name spaces.
Change Log:
CODE
szs v0.34a r3659 - 2012-05-12
- KMP text parser extensions:
- New commands:
@INCLUDE "filename": include text files.
@RETURN [val]: returns from the current input file.
@EXIT: exit the parser execution.
@ASSERT condition: exit execution, if 'condition' is false.
@MACRO .. @ENDMACRO: Define named macros.
@FUNCTION .. @ENDFUNCTION: Like @MACRO, but can also be used as
function in numerical expressions.
@CALL macroname(...): Call a previos defined macro with parameters.
'@:macroname(...)' is a short cut for '@CALL macroname(...):'
@DOIF (condition) anytext: Execute 'anytext', if 'condition' is true.
- New private variable name space: @PDEF
- P-Variables are only defined for the current source file or function.
- Loop variables (@FOR,@FOREACH) and macro parameters are defined in
this new private name space.
- New options for command FUNCTIONS (list parser functions):
- Option --long: The entered keys are compared against the description.
- Option --verbose: The description is printed too.
- Bug fix: Parser function minMax() returned wrong results.
Links:
Edited by Wiimm, 12 May 2012 - 11:46 AM.















