|  | 
|  | SQCompiler (SQVM *v, SQLEXREADFUNC rg, SQUserPointer up, const SQChar *sourcename, bool raiseerror, bool lineinfo) | 
|  | 
| void | Error (const SQChar *s,...) | 
|  | 
| void | Lex () | 
|  | 
| void | PushExpState () | 
|  | 
| bool | IsDerefToken (SQInteger tok) | 
|  | 
| ExpState | PopExpState () | 
|  | 
| SQObject | Expect (SQInteger tok) | 
|  | 
| bool | IsEndOfStatement () | 
|  | 
| void | OptionalSemicolon () | 
|  | 
| void | MoveIfCurrentTargetIsLocal () | 
|  | 
| bool | Compile (SQObjectPtr &o) | 
|  | 
| void | Statements () | 
|  | 
| void | Statement () | 
|  | 
| void | EmitDerefOp (SQOpcode op) | 
|  | 
| void | Emit2ArgsOP (SQOpcode op, SQInteger p3=0) | 
|  | 
| void | EmitCompoundArith (SQInteger tok, bool deref) | 
|  | 
| void | CommaExpr () | 
|  | 
| ExpState | Expression (bool funcarg=false) | 
|  | 
| void | BIN_EXP (SQOpcode op, void(SQCompiler::*f)(void), SQInteger op3=0) | 
|  | 
| void | LogicalOrExp () | 
|  | 
| void | LogicalAndExp () | 
|  | 
| void | BitwiseOrExp () | 
|  | 
| void | BitwiseXorExp () | 
|  | 
| void | BitwiseAndExp () | 
|  | 
| void | CompExp () | 
|  | 
| void | ShiftExp () | 
|  | 
| void | PlusExp () | 
|  | 
| void | MultExp () | 
|  | 
| void | PrefixedExpr () | 
|  | 
| SQInteger | Factor () | 
|  | 
| void | UnaryOP (SQOpcode op) | 
|  | 
| bool | NeedGet () | 
|  | 
| void | FunctionCallArgs () | 
|  | 
| void | ParseTableOrClass (SQInteger separator, SQInteger terminator='}') | 
|  | 
| void | LocalDeclStatement () | 
|  | 
| void | IfStatement () | 
|  | 
| void | WhileStatement () | 
|  | 
| void | DoWhileStatement () | 
|  | 
| void | ForStatement () | 
|  | 
| void | ForEachStatement () | 
|  | 
| void | SwitchStatement () | 
|  | 
| void | FunctionStatement () | 
|  | 
| void | ClassStatement () | 
|  | 
| SQObject | ExpectScalar () | 
|  | 
| void | EnumStatement () | 
|  | 
| void | TryCatchStatement () | 
|  | 
| void | FunctionExp (SQInteger ftype) | 
|  | 
| void | ClassExp () | 
|  | 
| void | DelegateExpr () | 
|  | 
| void | DeleteExpr () | 
|  | 
| void | PrefixIncDec (SQInteger token) | 
|  | 
| void | CreateFunction (SQObject &name) | 
|  | 
| void | CleanStack (SQInteger stacksize) | 
|  | 
| void | ResolveBreaks (SQFuncState *funcstate, SQInteger ntoresolve) | 
|  | 
| void | ResolveContinues (SQFuncState *funcstate, SQInteger ntoresolve, SQInteger targetpos) | 
|  | 
Definition at line 48 of file sqcompiler.cpp.
 
◆ SQCompiler()
  
  | 
        
          | SQCompiler::SQCompiler | ( | SQVM * | v, |  
          |  |  | SQLEXREADFUNC | rg, |  
          |  |  | SQUserPointer | up, |  
          |  |  | const SQChar * | sourcename, |  
          |  |  | bool | raiseerror, |  
          |  |  | bool | lineinfo |  
          |  | ) |  |  |  | inline | 
 
 
◆ BIN_EXP()
  
  | 
        
          | void SQCompiler::BIN_EXP | ( | SQOpcode | op, |  
          |  |  | void(SQCompiler::*)(void) | f, |  
          |  |  | SQInteger | op3 = 0 |  
          |  | ) |  |  |  | inline | 
 
 
◆ BitwiseAndExp()
  
  | 
        
          | void SQCompiler::BitwiseAndExp | ( |  | ) |  |  | inline | 
 
 
◆ BitwiseOrExp()
  
  | 
        
          | void SQCompiler::BitwiseOrExp | ( |  | ) |  |  | inline | 
 
 
◆ BitwiseXorExp()
  
  | 
        
          | void SQCompiler::BitwiseXorExp | ( |  | ) |  |  | inline | 
 
 
◆ ClassExp()
  
  | 
        
          | void SQCompiler::ClassExp | ( |  | ) |  |  | inline | 
 
 
◆ ClassStatement()
  
  | 
        
          | void SQCompiler::ClassStatement | ( |  | ) |  |  | inline | 
 
 
◆ CleanStack()
  
  | 
        
          | void SQCompiler::CleanStack | ( | SQInteger | stacksize | ) |  |  | inline | 
 
 
◆ CommaExpr()
  
  | 
        
          | void SQCompiler::CommaExpr | ( |  | ) |  |  | inline | 
 
 
◆ CompExp()
  
  | 
        
          | void SQCompiler::CompExp | ( |  | ) |  |  | inline | 
 
 
◆ Compile()
  
  | 
        
          | bool SQCompiler::Compile | ( | SQObjectPtr & | o | ) |  |  | inline | 
 
 
◆ CreateFunction()
  
  | 
        
          | void SQCompiler::CreateFunction | ( | SQObject & | name | ) |  |  | inline | 
 
 
◆ DelegateExpr()
  
  | 
        
          | void SQCompiler::DelegateExpr | ( |  | ) |  |  | inline | 
 
 
◆ DeleteExpr()
  
  | 
        
          | void SQCompiler::DeleteExpr | ( |  | ) |  |  | inline | 
 
 
◆ DoWhileStatement()
  
  | 
        
          | void SQCompiler::DoWhileStatement | ( |  | ) |  |  | inline | 
 
 
◆ Emit2ArgsOP()
  
  | 
        
          | void SQCompiler::Emit2ArgsOP | ( | SQOpcode | op, |  
          |  |  | SQInteger | p3 = 0 |  
          |  | ) |  |  |  | inline | 
 
 
◆ EmitCompoundArith()
  
  | 
        
          | void SQCompiler::EmitCompoundArith | ( | SQInteger | tok, |  
          |  |  | bool | deref |  
          |  | ) |  |  |  | inline | 
 
 
◆ EmitDerefOp()
  
  | 
        
          | void SQCompiler::EmitDerefOp | ( | SQOpcode | op | ) |  |  | inline | 
 
 
◆ EnumStatement()
  
  | 
        
          | void SQCompiler::EnumStatement | ( |  | ) |  |  | inline | 
 
 
◆ Error()
  
  | 
        
          | void SQCompiler::Error | ( | const SQChar * | s, |  
          |  |  |  | ... |  
          |  | ) |  |  |  | inline | 
 
 
◆ Expect()
  
  | 
        
          | SQObject SQCompiler::Expect | ( | SQInteger | tok | ) |  |  | inline | 
 
 
◆ ExpectScalar()
  
  | 
        
          | SQObject SQCompiler::ExpectScalar | ( |  | ) |  |  | inline | 
 
 
◆ Expression()
  
  | 
        
          | ExpState SQCompiler::Expression | ( | bool | funcarg = false | ) |  |  | inline | 
 
 
◆ Factor()
  
  | 
        
          | SQInteger SQCompiler::Factor | ( |  | ) |  |  | inline | 
 
 
◆ ForEachStatement()
  
  | 
        
          | void SQCompiler::ForEachStatement | ( |  | ) |  |  | inline | 
 
 
◆ ForStatement()
  
  | 
        
          | void SQCompiler::ForStatement | ( |  | ) |  |  | inline | 
 
 
◆ FunctionCallArgs()
  
  | 
        
          | void SQCompiler::FunctionCallArgs | ( |  | ) |  |  | inline | 
 
 
◆ FunctionExp()
  
  | 
        
          | void SQCompiler::FunctionExp | ( | SQInteger | ftype | ) |  |  | inline | 
 
 
◆ FunctionStatement()
  
  | 
        
          | void SQCompiler::FunctionStatement | ( |  | ) |  |  | inline | 
 
 
◆ IfStatement()
  
  | 
        
          | void SQCompiler::IfStatement | ( |  | ) |  |  | inline | 
 
 
◆ IsDerefToken()
  
  | 
        
          | bool SQCompiler::IsDerefToken | ( | SQInteger | tok | ) |  |  | inline | 
 
 
◆ IsEndOfStatement()
  
  | 
        
          | bool SQCompiler::IsEndOfStatement | ( |  | ) |  |  | inline | 
 
 
◆ Lex()
◆ LocalDeclStatement()
  
  | 
        
          | void SQCompiler::LocalDeclStatement | ( |  | ) |  |  | inline | 
 
 
◆ LogicalAndExp()
  
  | 
        
          | void SQCompiler::LogicalAndExp | ( |  | ) |  |  | inline | 
 
 
◆ LogicalOrExp()
  
  | 
        
          | void SQCompiler::LogicalOrExp | ( |  | ) |  |  | inline | 
 
 
◆ MoveIfCurrentTargetIsLocal()
  
  | 
        
          | void SQCompiler::MoveIfCurrentTargetIsLocal | ( |  | ) |  |  | inline | 
 
 
◆ MultExp()
  
  | 
        
          | void SQCompiler::MultExp | ( |  | ) |  |  | inline | 
 
 
◆ NeedGet()
  
  | 
        
          | bool SQCompiler::NeedGet | ( |  | ) |  |  | inline | 
 
 
◆ OptionalSemicolon()
  
  | 
        
          | void SQCompiler::OptionalSemicolon | ( |  | ) |  |  | inline | 
 
 
◆ ParseTableOrClass()
  
  | 
        
          | void SQCompiler::ParseTableOrClass | ( | SQInteger | separator, |  
          |  |  | SQInteger | terminator = '}' |  
          |  | ) |  |  |  | inline | 
 
 
◆ PlusExp()
  
  | 
        
          | void SQCompiler::PlusExp | ( |  | ) |  |  | inline | 
 
 
◆ PopExpState()
◆ PrefixedExpr()
  
  | 
        
          | void SQCompiler::PrefixedExpr | ( |  | ) |  |  | inline | 
 
 
◆ PrefixIncDec()
  
  | 
        
          | void SQCompiler::PrefixIncDec | ( | SQInteger | token | ) |  |  | inline | 
 
 
◆ PushExpState()
  
  | 
        
          | void SQCompiler::PushExpState | ( |  | ) |  |  | inline | 
 
 
◆ ResolveBreaks()
  
  | 
        
          | void SQCompiler::ResolveBreaks | ( | SQFuncState * | funcstate, |  
          |  |  | SQInteger | ntoresolve |  
          |  | ) |  |  |  | inline | 
 
 
◆ ResolveContinues()
  
  | 
        
          | void SQCompiler::ResolveContinues | ( | SQFuncState * | funcstate, |  
          |  |  | SQInteger | ntoresolve, |  
          |  |  | SQInteger | targetpos |  
          |  | ) |  |  |  | inline | 
 
 
◆ ShiftExp()
  
  | 
        
          | void SQCompiler::ShiftExp | ( |  | ) |  |  | inline | 
 
 
◆ Statement()
  
  | 
        
          | void SQCompiler::Statement | ( |  | ) |  |  | inline | 
 
 
◆ Statements()
  
  | 
        
          | void SQCompiler::Statements | ( |  | ) |  |  | inline | 
 
 
◆ SwitchStatement()
  
  | 
        
          | void SQCompiler::SwitchStatement | ( |  | ) |  |  | inline | 
 
 
◆ ThrowError()
  
  | 
        
          | static void SQCompiler::ThrowError | ( | void * | ud, |  
          |  |  | const SQChar * | s |  
          |  | ) |  |  |  | inlinestatic | 
 
 
◆ TryCatchStatement()
  
  | 
        
          | void SQCompiler::TryCatchStatement | ( |  | ) |  |  | inline | 
 
 
◆ UnaryOP()
  
  | 
        
          | void SQCompiler::UnaryOP | ( | SQOpcode | op | ) |  |  | inline | 
 
 
◆ WhileStatement()
  
  | 
        
          | void SQCompiler::WhileStatement | ( |  | ) |  |  | inline | 
 
 
◆ _debugline
  
  | 
        
          | SQInteger SQCompiler::_debugline |  | private | 
 
 
◆ _debugop
  
  | 
        
          | SQInteger SQCompiler::_debugop |  | private | 
 
 
◆ _errorjmp
  
  | 
        
          | jmp_buf SQCompiler::_errorjmp |  | private | 
 
 
◆ _expstates
◆ _fs
  
  | 
        
          | SQFuncState* SQCompiler::_fs |  | private | 
 
 
◆ _lex
◆ _lineinfo
  
  | 
        
          | bool SQCompiler::_lineinfo |  | private | 
 
 
◆ _raiseerror
  
  | 
        
          | bool SQCompiler::_raiseerror |  | private | 
 
 
◆ _sourcename
  
  | 
        
          | SQObjectPtr SQCompiler::_sourcename |  | private | 
 
 
◆ _token
  
  | 
        
          | SQInteger SQCompiler::_token |  | private | 
 
 
◆ _vm
◆ compilererror
  
  | 
        
          | SQChar* SQCompiler::compilererror |  | private | 
 
 
The documentation for this class was generated from the following file: