/[svn]/linuxsampler/trunk/src/scriptvm/tree.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2587 by schoenebeck, Fri May 30 12:48:05 2014 UTC revision 2588 by schoenebeck, Sun Jun 1 14:44:38 2014 UTC
# Line 497  public: Line 497  public:
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;
# Line 518  public: Line 518  public:
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    
# Line 526  public: Line 527  public:
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);
# Line 542  public: Line 543  public:
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 {
# Line 588  public: Line 594  public:
594          stackFrame = -1;          stackFrame = -1;
595      }      }
596    
597      int suspensionTimeMicroseconds() const {      int suspensionTimeMicroseconds() const OVERRIDE {
598          return suspendMicroseconds;          return suspendMicroseconds;
599      }      }
600  };  };

Legend:
Removed from v.2587  
changed lines
  Added in v.2588

  ViewVC Help
Powered by ViewVC