Generate module ctkDTvar.pl containing package ctkDTvar
perl ctkParseDT_variables.pl [options]
options
-h help file
-d activate debug mode
This script is a specialized copy of ctkParseDT.pl.
It generates the decition table for the assigment of variables.
To do that it does the following:
- it provides the definition of the table,
- it sets up the arguments for module ctkDecTab
- it sends messages to that class and finally
- it launchs perl to check the resulted code.
The mainline does the following actions
- set up the global variables
name of the package is 'ctkDTvar'
name of the file is 'ctkDTvar.pl'
- accept command line arguments
- call main for processing
- check syntax of generated file
This method reads in the definition by means of main::getDefinition
and sends the messages 'parseAndBuildTable' and 'save'
to the class ctkDecTab.
It returns the number of saved lines of code.
This method returns the decTab definition either
as an array of lines or as a string of concatenated lines
depending on the context.