Production

Top  Previous  Next

Examples > Bill > Production

 

The only production of this project is constructed according the meanwhile well know scheme of a loop containing a SKIP symbol.

 

{{double sum = 0.0;}}

(

Amount[sum]

|Amount_[sum]

|SKIP

)+

{{out << sum << "\n";}}

 

 

The variable of the type double is passed to the token Amount and Amount_, where the value of the respectively recognized amount will be added.

The whole sum is printed at the end of the program.

 



This page belongs to the TextTransformer Documentation

Home  Content  German