Class targetCode models the basic functionality to generate
the various targets.
Thus it is the parent class of all implemented targetCode.
the main functions are
generate generate the target
parse parse existing target
load load the target definition (template)
The main usage of this class is to work as base class.
use ctkTargetCode;
use base (qw/ctkTargetCode/);
- Methods
-
new
destroy
_init
generate
parse
load
genVariablesGlobal
genAllVariablesGlobal
genVariablesLocal
genGlobalVariablesClassVariables
existsTestCode
genCalls2Test
genOnDeleteWindow
genGcode
gen_TkCode
gen_my_variables
genCallbacks
genOptions
genPod
genUselibStrictAndUseStatements
genUseStatements
genMainWindow
genOtherCode
pathNames
genUselib
genOrderCode
genWidgetCode
generateTarget
genOrderCode
genNonvisualCode
normalize
parseTargetCode read external data structure to internal
Author: Marco
date: 28.10.2006
History
28.10.2006 MO03101 mam First draft
28.11.2007 MO03501 mam refactoring
13.12.2007 version 1.02
13.03.2008 version 1.03
10.09.2008 version 1.04
18.09.2008 version 1.05
16.10.2008 version 1.06
27.10.2008 version 1.07
24.11.2009 version 1.08
Return the number of test-subrotines.
This method does the following tasks
- parse the given target code,
- save tokens into project data members and file_opt structure,
- display errors on the standard message dialog box.
It accepts two arguments
- target code (ref to array)
- arg 'where' for method parseTkCode (default 'push')
It returns true if no error was found, 0 otherwise.