Sirikata
Functions
liboh/plugins/js/emerson/Util.cpp File Reference
#include "Util.h"
#include <antlr3.h>
#include <iostream>
#include <fstream>
#include <string>
Include dependency graph for Util.cpp:

Functions

int emerson_init ()
int emerson_isImaginaryToken (pANTLR3_COMMON_TOKEN token)
void emerson_printRewriteStream (pANTLR3_REWRITE_RULE_TOKEN_STREAM rwStream)
pANTLR3_STRING emerson_printAST (pANTLR3_BASE_TREE tree, pANTLR3_UINT8 *parserTokenNames)
void emerson_createTreeMirrorImage2 (pANTLR3_BASE_TREE ptr)
void emerson_createTreeMirrorImage (pANTLR3_BASE_TREE ptr)
char * read_file (const char *filename)
std::string replaceAllInstances (std::string initialString, std::string toReplace, std::string toReplaceWith)
std::string emerson_escapeSingleQuotes (const char *stringSequence)
std::string emerson_escapeMultiline (const char *stringSequence)

Function Documentation

void emerson_createTreeMirrorImage ( pANTLR3_BASE_TREE  ptr)
void emerson_createTreeMirrorImage2 ( pANTLR3_BASE_TREE  ptr)
std::string emerson_escapeMultiline ( const char *  stringSequence)

References replaceAllInstances().

std::string emerson_escapeSingleQuotes ( const char *  stringSequence)

References replaceAllInstances().

int emerson_init ( )
int emerson_isImaginaryToken ( pANTLR3_COMMON_TOKEN  token)
pANTLR3_STRING emerson_printAST ( pANTLR3_BASE_TREE  tree,
pANTLR3_UINT8 *  parserTokenNames 
)

References emerson_printAST().

void emerson_printRewriteStream ( pANTLR3_REWRITE_RULE_TOKEN_STREAM  rwStream)
char* read_file ( const char *  filename)
std::string replaceAllInstances ( std::string  initialString,
std::string  toReplace,
std::string  toReplaceWith 
)