7 void printout(pANTLR3_BASE_TREE type)
9 std::cout << type->getText(type)->chars << " : " << type->getType(type) << std::endl;
12 std::string removeQuotes(std::string str)
18 str = str.substr(1, str.length()-1);
24 if(str.at(str.length()-1) == '"')
26 str = str.substr(0, str.length()-1);
33 bool strEquals(const char* a, const char* b)
35 while(*a != '\0' && *b != '\0')
40 if(c1 >= 'a' && c1 <= 'z')
45 if(c2 >= 'a' && c2 <= 'z')
59 if((*a == *b) && (*a == 0))