497 |
|
|
498 |
void* scanner; |
void* scanner; |
499 |
std::istream* is; |
std::istream* is; |
500 |
std::vector<ParserIssue> errors; |
std::vector<ParserIssue> vErrors; |
501 |
std::vector<ParserIssue> warnings; |
std::vector<ParserIssue> vWarnings; |
502 |
std::vector<ParserIssue> issues; |
std::vector<ParserIssue> vIssues; |
503 |
|
|
504 |
std::set<String> builtinPreprocessorConditions; |
std::set<String> builtinPreprocessorConditions; |
505 |
std::set<String> userPreprocessorConditions; |
std::set<String> userPreprocessorConditions; |
518 |
|
|
519 |
ArrayList<int>* globalIntMemory; |
ArrayList<int>* globalIntMemory; |
520 |
ArrayList<String>* globalStrMemory; |
ArrayList<String>* globalStrMemory; |
521 |
|
int requiredMaxStackSize; |
522 |
|
|
523 |
VMFunctionProvider* functionProvider; |
VMFunctionProvider* functionProvider; |
524 |
|
|
527 |
ParserContext(VMFunctionProvider* parent) : |
ParserContext(VMFunctionProvider* parent) : |
528 |
scanner(NULL), is(NULL), |
scanner(NULL), is(NULL), |
529 |
globalIntVarCount(0), globalStrVarCount(0), polyphonicIntVarCount(0), |
globalIntVarCount(0), globalStrVarCount(0), polyphonicIntVarCount(0), |
530 |
globalIntMemory(NULL), globalStrMemory(NULL), functionProvider(parent), |
globalIntMemory(NULL), globalStrMemory(NULL), requiredMaxStackSize(-1), |
531 |
execContext(NULL) |
functionProvider(parent), execContext(NULL) |
532 |
{ |
{ |
533 |
} |
} |
534 |
virtual ~ParserContext() { destroyScanner(); } |
virtual ~ParserContext(); |
535 |
VariableRef globalVar(const String& name); |
VariableRef globalVar(const String& name); |
536 |
IntVariableRef globalIntVar(const String& name); |
IntVariableRef globalIntVar(const String& name); |
537 |
StringVariableRef globalStrVar(const String& name); |
StringVariableRef globalStrVar(const String& name); |
543 |
bool setPreprocessorCondition(const char* name); |
bool setPreprocessorCondition(const char* name); |
544 |
bool resetPreprocessorCondition(const char* name); |
bool resetPreprocessorCondition(const char* name); |
545 |
bool isPreprocessorConditionSet(const char* name); |
bool isPreprocessorConditionSet(const char* name); |
546 |
|
std::vector<ParserIssue> issues() const OVERRIDE; |
547 |
|
std::vector<ParserIssue> errors() const OVERRIDE; |
548 |
|
std::vector<ParserIssue> warnings() const OVERRIDE; |
549 |
|
VMEventHandler* eventHandler(uint index) OVERRIDE; |
550 |
|
VMEventHandler* eventHandlerByName(const String& name) OVERRIDE; |
551 |
}; |
}; |
552 |
|
|
553 |
class ExecContext : public VMExecContext { |
class ExecContext : public VMExecContext { |
594 |
stackFrame = -1; |
stackFrame = -1; |
595 |
} |
} |
596 |
|
|
597 |
int suspensionTimeMicroseconds() const { |
int suspensionTimeMicroseconds() const OVERRIDE { |
598 |
return suspendMicroseconds; |
return suspendMicroseconds; |
599 |
} |
} |
600 |
}; |
}; |