Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Many keywords in Odysseus Scripts supports or needs the definition of parameters. There is an existing parser class PreParserKeywordParameterHelper, that supports an easy definition and parsing of these parameters. The following code example shows, how define these parameters. There are two possibilities (with the name of the parameter or a short form without names). Note that if there are no names given, the position of the parameter is relevant. If the parameters are defined with names, the position is arbitrary.

Code Block
/// keyword with parameters and their names
#PARALLELIZATION (type=INTER_OPERATOR) (degree=2) (buffersize=10000000) (optimization=true) (threadedbuffer=true)
 
/// or definition without names
#PARALLELIZATION INTER_OPERATOR 2 10000000 true true

...