public Declare(ref List<String> statements, ref int index)
: base(ref statements, ref index)
{
if( parts.Count() >= 3 )
{
int typeIdx = 2;
int actionIdx = 3;
int variableStartIdx = 4;
type = parts[2].Trim();
if( "GLOBAL".Equals(type) )
{
isGlobal = true;
typeIdx = 3;
actionIdx = 4;
variableStartIdx = 5;
}
type = parts[typeIdx].Trim();
action = parts[actionIdx].Trim();
for( int i=variableStartIdx; i<parts.Count(); i++ )
{
variables.Add(parts[i].Trim(), parts[i].Trim());
}
}
}