#include <CompileUnit.h>
Definition at line 33 of file CompileUnit.h.
enum CompileUnit::CState |
Definition at line 36 of file CompileUnit.h.
CompileUnit::CompileUnit | ( | FileSystem * | filesystem | ) |
Definition at line 81 of file Compile.cpp.
References CSTATE_NEW, filelist, filesys, FileSystem::ListFiles(), pout, and setState().
CompileUnit::~CompileUnit | ( | ) | [inline] |
Definition at line 40 of file CompileUnit.h.
bool CompileUnit::compileComplete | ( | ) | const [inline] |
Definition at line 56 of file CompileUnit.h.
References CSTATE_FINISHED, filelist, and state().
Referenced by CompileProcess::run().
bool CompileUnit::consume | ( | const LLCToken & | tok | ) | [private] |
Definition at line 148 of file Compile.cpp.
References found(), and nodes.
Referenced by parse_closeblock(), and parse_openblock().
void CompileUnit::debugPrint | ( | std::ostream & | o | ) | const |
void CompileUnit::debugPrint | ( | std::ostream & | o, | |
CompileNode * | n | |||
) | const |
Definition at line 103 of file Compile.cpp.
References debugPrintHead(), and n.
Referenced by msg(), and parse_openblock().
void CompileUnit::debugPrintBody | ( | std::ostream & | o | ) | const [private] |
void CompileUnit::debugPrintHead | ( | std::ostream & | o, | |
CompileNode * | n = 0 | |||
) | const [private] |
LLCToken CompileUnit::expect | ( | ) | const [inline] |
Definition at line 54 of file CompileUnit.h.
References _expect.
Referenced by CompileProcess::run().
bool CompileUnit::found | ( | const LLCToken & | tok | ) | const [inline, private] |
Definition at line 64 of file CompileUnit.h.
References nodes.
Referenced by consume(), parse_closeblock(), and parse_openblock().
bool CompileUnit::parse | ( | ) |
Definition at line 158 of file Compile.cpp.
References _expect, con, CSTATE_FINISHED, currclass, filelist, filesys, IDataSource::GetRawIfstream(), idatasource, ifile, LLC_CLASS, LLC_CLOSE_BRACE, LLC_EOF, LLC_IDENT, LLC_OPEN_BRACE, LLC_XFAIL, LLC_XPASS, LLC_XWARN, msg(), MT_WARN, nodes, parse_closeblock(), parse_openblock(), parser, pout, Console::Printf(), FileSystem::ReadFile(), setState(), and state().
Referenced by CompileProcess::run().
bool CompileUnit::parse_closeblock | ( | ) |
Definition at line 315 of file Compile.cpp.
References consume(), found(), LLC_CLOSE_BRACE, and nodes.
Referenced by parse().
bool CompileUnit::parse_openblock | ( | ) |
Definition at line 236 of file Compile.cpp.
References consume(), currclass, debugPrint(), found(), LLC_CLASS, LLC_IDENT, LLC_INHERITS, LLC_OPEN_BRACE, msg(), MT_ERR, ClassNode::name, nodes, and pout.
Referenced by parse().
bool CompileUnit::setState | ( | const CState | cs | ) |
Definition at line 337 of file Compile.cpp.
References _expect, _state, _warned, CSTATE_FAIL, CSTATE_FINISHED, CSTATE_NEW, CSTATE_WARNED, CSTATE_WORKING, currclass, idatasource, ifile, LLC_NONE, nodes, parser, and tailclasses.
Referenced by CompileUnit(), msg(), and parse().
CState CompileUnit::state | ( | ) | const [inline] |
Definition at line 51 of file CompileUnit.h.
References _state.
Referenced by compileComplete(), parse(), and CompileProcess::run().
bool CompileUnit::warned | ( | ) | const [inline] |
bool CompileUnit::_ccomplete [private] |
Definition at line 94 of file CompileUnit.h.
LLCToken CompileUnit::_expect [private] |
CState CompileUnit::_state [private] |
bool CompileUnit::_warned [private] |
ClassNode* CompileUnit::currclass [private] |
Definition at line 72 of file CompileUnit.h.
Referenced by parse(), parse_openblock(), and setState().
FileSystem::FileList CompileUnit::filelist [private] |
Definition at line 96 of file CompileUnit.h.
Referenced by compileComplete(), CompileUnit(), and parse().
FileSystem* const CompileUnit::filesys [private] |
IDataSource* CompileUnit::idatasource [private] |
std::ifstream* CompileUnit::ifile [private] |
std::list<CompileNode *> CompileUnit::nodes [private] |
Definition at line 67 of file CompileUnit.h.
Referenced by consume(), debugPrintBody(), debugPrintHead(), found(), parse(), parse_closeblock(), parse_openblock(), and setState().
llcFlexLexer* CompileUnit::parser [private] |
std::list<ClassNode *> CompileUnit::tailclasses [private] |
uint32 CompileUnit::testidx [private] |
Definition at line 101 of file CompileUnit.h.