MetaCC Namespace Reference


Detailed Description

MetaCC is compiler of MetaCC language used to compile CPU description into C++ code to emulate the CPU.


Classes

class  CodeSnippet
 Code snippet. More...
class  CodeSnippetsCollection
 Collection of named code snippets. More...
class  Bitfield
 Represent bitfield declaration. More...
class  Template
 Represent template declaration. More...
class  Pattern
 Pattern description. More...
class  Compilation
 This is compilation of data parsed from input file. More...
class  Error
 Exception class which represents an error in the MetaCC compiler. More...
class  Parser
 Parse input text stream into Compilation object. More...
class  StateTable
 State trasitions table. More...
class  TextReader
 Encapsulates text file stream and provides more convenient API to read the text for line oriented text parsers. More...

Functions

std::string int2str (int n)
 Utility function to convert integer to string representation.
std::string str_replace_all (std::string str, std::string substr, std::string replacement)
 Utility function to replace all occurrences of substr in str with replacement.


Function Documentation

std::string MetaCC::int2str ( int  n  ) 

Utility function to convert integer to string representation.

Definition at line 10 of file metacc_utils.h.

Referenced by MetaCC::Compilation::prepare_state_table().

std::string MetaCC::str_replace_all ( std::string  str,
std::string  substr,
std::string  replacement 
)

Utility function to replace all occurrences of substr in str with replacement.

Definition at line 23 of file metacc_utils.h.

Referenced by MetaCC::CodeSnippet::replace_all().


Generated on Sat Sep 9 03:50:56 2006 for Openem APIs by  doxygen 1.4.7