/[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 3727 by schoenebeck, Fri Jan 3 15:44:29 2020 UTC revision 3728 by schoenebeck, Wed Jan 29 13:58:33 2020 UTC
# Line 41  enum StmtType_t { Line 41  enum StmtType_t {
41      STMT_NOOP,      STMT_NOOP,
42  };  };
43    
44    enum Qualifier_t {
45        QUALIFIER_NONE = 0,
46        QUALIFIER_CONST = 1,
47        QUALIFIER_POLYPHONIC = (1<<1),
48    };
49    
50  /**  /**
51   * Convenience function used for retrieving the (assumed) data type of a given   * Convenience function used for retrieving the (assumed) data type of a given
52   * script variable name.   * script variable name.
# Line 70  inline ExprType_t scalarTypeOfArray(Expr Line 76  inline ExprType_t scalarTypeOfArray(Expr
76      return EMPTY_EXPR; // just to shut up the compiler      return EMPTY_EXPR; // just to shut up the compiler
77  }  }
78    
79    inline String qualifierStr(Qualifier_t qualifier) {
80        switch (qualifier) {
81            case QUALIFIER_NONE:          return "none";
82            case QUALIFIER_CONST:         return "const";
83            case QUALIFIER_POLYPHONIC:    return "polyphonic";
84        }
85        return "unknown";
86    }
87    
88  /**  /**
89   * Used by parser for parser error messages to provide a text with all data   * Used by parser for parser error messages to provide a text with all data
90   * types accepted by the given built-in function @a fn for the respective   * types accepted by the given built-in function @a fn for the respective

Legend:
Removed from v.3727  
changed lines
  Added in v.3728

  ViewVC Help
Powered by ViewVC