Calling parameters

Top  Previous  Next

Scripts > Productions > Calling parameters


If a production calls another production the required parameters must be passed. Variables are declared inside of a semantic action. The name of such a variable then can be included into braces "[...]", which are following the name of the called production.




The production Comment may have the parameter str& xsComment.


Name:                Comment

Parameter:        str& xsComment

Text:                ...


A second production Script could call the Comment production. So the str parameter must be declared, before Comment can be called:


Name:                Script

Parameter:        ...

Text:                {{ str s;}} Comment[s] ...



This page belongs to the TextTransformer Documentation

Home  Content  German