VoxelFarm::Architecture::CModule Class Reference

Defines a program. More...

#include <Grammar.h>

Public Member Functions

CModuleaxiom (String name)
 Declares the starting rule object.
 
CModuleadd (CRule &rule)
 Adds a rule.
 
CRulebegin (String name)
 Starts the definition of a new rule object.
 
void saveToFile (const char *filename)
 Saves the program to a file name.
 
void loadFromFile (const char *filename, char *debugfile=NULL)
 Loads a program from a file name.
 

Public Attributes

TMap< String, TVector< CRule > > rules
 Maps rules to identifiers. A single identifier can be shared by many rules.
 
String baseAxiom
 Stores the base axiom.
 

Detailed Description

Defines a program.

Definition at line 386 of file Grammar.h.


The documentation for this class was generated from the following file: