tessonec/PySPG — Issue #5: Parsing of base.ct
Author: pmavrodiev
Created: 2011-10-21 13:30:34+00:00
State: open

Hi Claudio,

I ran into the following issue when creating base.cxx from base.ct with the ctt.py script. If the base.ct file contains variables that end with a digit, the parsing return an error. For example:

val:double:sigma1:1.0:standard deviation

sigma1 seems to be the problem, because ctt returns:

~/opt/bin/ctt.py -n -i base.ct
[ctt - WARNING] 'Changelog' file not found/bad permissions/could not parse it
[ctt - WARNING] not setting release date, nor version
[ctt - MESSAGE] generating code from: base.ct ...
Traceback (most recent call last):
File "/home/pmavrodiev/opt/bin/ctt.py", line 317, in
externdefinition(i)
File "/home/pmavrodiev/opt/bin/ctt.py", line 84, in externdefinition
print "//:::~ ",v[4]
IndexError: list index out of range
make: *** [base.cxx] Error 1

Don't know if this is an issue or intended behaviour.

pavlin