Parameter-Wizard |
Top Previous Next |
User interface > Main menu > Menu: Help > Wizards > Parameter-Wizard
The parameter wizard simplifies the creation of a uniform parameter or a uniform variable declaration for several scripts.
Short explanations of the offered options are presented on the individual pages of the wizard. Therefore here only briefly is outlined, what can be achieved with the wizard as a result for all productions and tokens at the example of a single production. The production:
A ( ) ::= _a ( A | B )
The production can be equipped with a parameter xParam of the type type and a local declaration of such a parameter variable.
A ( type& xParam ) ::=
{{ type Param; }} _a[Param] ( A[Param] | B[Param] )
If the option for the creation of declarations isn't set, you get:
A ( type& xParam ) ::=
_a[xParam] ( A[xParam] | B[xParam] )
If e.g. xParam is of the type str, these scaffoldings then can be completed easily so that the reference variable xParam contains the desired target text after passing through the complete parser. For the named literal _a the addition could look like::
_a( str& xParam ) ::=
{{ xParam += xState.copy(); }}
If for all tokens corresponding actions were defined, then xParam would include a copy of the source text after processing the parser.
The automatic generation of the code - in the example "[xParam]" - to pass the parameter to the called productions and tokens is only possible if the option: "for all productions and tokens" is chosen.
The tree wizard works quite similarly as the parameter wizard for the special type node.
|
This page belongs to the TextTransformer Documentation |
Home Content German |