Sirikata
liboh/plugins/js/emerson/Util.h
Go to the documentation of this file.
00001 #ifndef __UTIL_HPP__
00002 #define __UTIL_HPP__
00003 
00004 #include<antlr3.h>
00005 #include <map>
00006 #include <stdio.h>
00007 #include <string>
00008 
00009 using namespace std;
00010 
00011 
00012 char* read_file(const char*);
00013 std::string emerson_escapeSingleQuotes(const char* stringSequence);
00014 std::string emerson_escapeMultiline(const char* stringSequence);
00015 std::string replaceAllInstances(std::string initialString, std::string toReplace, std::string toReplaceWith);
00016 int emerson_init();
00017 
00018 void emerson_printRewriteStream(pANTLR3_REWRITE_RULE_TOKEN_STREAM);
00019 void emerson_createTreeMirrorImage(pANTLR3_BASE_TREE tree);
00020 void emerson_createTreeMirrorImage2(pANTLR3_BASE_TREE tree);
00021 pANTLR3_STRING emerson_printAST(pANTLR3_BASE_TREE tree, pANTLR3_UINT8*parserTokenNames);
00022 
00023 #endif