@malloydata/malloy 0.0.12-dev221204204332 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ function applyBinary(fs, left, op, right) {
36
36
  if (oneOf(op, "+", "-")) {
37
37
  return delta(fs, left, op, right);
38
38
  }
39
- if (oneOf(op, "*")) {
39
+ if (oneOf(op, "*", "%")) {
40
40
  return numeric(fs, left, op, right);
41
41
  }
42
42
  if (oneOf(op, "/")) {
@@ -161,7 +161,7 @@ export declare abstract class BinaryNumeric<opType extends string> extends Expre
161
161
  export declare class ExprAddSub extends BinaryNumeric<"+" | "-"> {
162
162
  elementType: string;
163
163
  }
164
- export declare class ExprMulDiv extends BinaryNumeric<"*" | "/"> {
164
+ export declare class ExprMulDiv extends BinaryNumeric<"*" | "/" | "%"> {
165
165
  elementType: string;
166
166
  }
167
167
  export declare class ExprAlternationTree extends BinaryBoolean<"|" | "&"> {
@@ -489,7 +489,7 @@ exports.ExprAddSub = ExprAddSub;
489
489
  class ExprMulDiv extends BinaryNumeric {
490
490
  constructor() {
491
491
  super(...arguments);
492
- this.elementType = "*/";
492
+ this.elementType = "*/%";
493
493
  }
494
494
  }
495
495
  exports.ExprMulDiv = ExprMulDiv;
@@ -119,26 +119,27 @@ export declare class MalloyLexer extends Lexer {
119
119
  static readonly SEMI = 114;
120
120
  static readonly NOT_MATCH = 115;
121
121
  static readonly MATCH = 116;
122
- static readonly LITERAL_TIMESTAMP = 117;
123
- static readonly LITERAL_DAY = 118;
124
- static readonly LITERAL_QUARTER = 119;
125
- static readonly LITERAL_MONTH = 120;
126
- static readonly LITERAL_WEEK = 121;
127
- static readonly LITERAL_YEAR = 122;
128
- static readonly IDENTIFIER = 123;
129
- static readonly PERCENT_LITERAL = 124;
130
- static readonly INTEGER_LITERAL = 125;
131
- static readonly NUMERIC_LITERAL = 126;
132
- static readonly OBJECT_NAME_LITERAL = 127;
133
- static readonly BLOCK_COMMENT = 128;
134
- static readonly COMMENT_TO_EOL = 129;
135
- static readonly WHITE_SPACE = 130;
136
- static readonly SQL_BEGIN = 131;
137
- static readonly CLOSE_CODE = 132;
138
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 133;
139
- static readonly UNEXPECTED_CHAR = 134;
140
- static readonly OPEN_CODE = 135;
141
- static readonly SQL_END = 136;
122
+ static readonly PERCENT = 117;
123
+ static readonly LITERAL_TIMESTAMP = 118;
124
+ static readonly LITERAL_DAY = 119;
125
+ static readonly LITERAL_QUARTER = 120;
126
+ static readonly LITERAL_MONTH = 121;
127
+ static readonly LITERAL_WEEK = 122;
128
+ static readonly LITERAL_YEAR = 123;
129
+ static readonly IDENTIFIER = 124;
130
+ static readonly PERCENT_LITERAL = 125;
131
+ static readonly INTEGER_LITERAL = 126;
132
+ static readonly NUMERIC_LITERAL = 127;
133
+ static readonly OBJECT_NAME_LITERAL = 128;
134
+ static readonly BLOCK_COMMENT = 129;
135
+ static readonly COMMENT_TO_EOL = 130;
136
+ static readonly WHITE_SPACE = 131;
137
+ static readonly SQL_BEGIN = 132;
138
+ static readonly CLOSE_CODE = 133;
139
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 134;
140
+ static readonly UNEXPECTED_CHAR = 135;
141
+ static readonly OPEN_CODE = 136;
142
+ static readonly SQL_END = 137;
142
143
  static readonly SQL_MODE = 1;
143
144
  static readonly channelNames: string[];
144
145
  static readonly modeNames: string[];