Generate decision table according to the given
command line arguments.
perl ctkParseDT.pl [options] [definition]
options
-d debug flag 1/0
-h display this help text
-t run unit test after table creation
definition
name of the definition file (default STDIN)
name of the generated module (default STDOUT)
Examples:
1. gen the module ctkDT_7.pl
perl ctkParseDT.pl ctkDT_7
1. Use definition file ctkDT_7.txt , gen module ctkDT_7x.pl
perl ctkParseDT.pl ctkDT_7 ctkDT_7x
3. Gen inline package from STDIN and write to STDOUT and activate debug mode
perl ctkParseDT.pl -d
4. Use definition file ctkDT_7, gen inline package from definition file and write to STDOUT
perl ctkParseDT.pl ctkDT_7 " "
- set up script environment,
- accept command line arguments,
- call main::main if arguments has been given,
main::mainx otherwise,
- issue exception "Could not gen code" if errors occurred,
- return status to OS.
This method reads in the definition by means of main::getDefinition.
Then, it sends the messages 'parseAndBuildTable' and 'save'
to the class ctkDecTab.
Finally it returns the number of saved lines of code.
This method reads in the definition by means of ctkDecTab::_load()
from STDIN
Then it sends the messages 'parseAndBuildTable' and 'save'
to the class ctkDecTab.
Finally, it returns the number of saved lines of code.