@mark1russell7/vex-compiler 0.13.1 → 0.13.3

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.
package/build/index.d.ts CHANGED
@@ -211,11 +211,12 @@ interface ModuleOptions {
211
211
  */
212
212
  readonly name?: string;
213
213
  /**
214
- * The space of the records. In both spaces, the key of a record is the text of its position. The default `array`
214
+ * The space of the records. In each space, the key of a record is the text of its position. The default `array`
215
215
  * has no parents. A `tree` takes the parents as the third argument of the run (COMPILE.MODULE.TREE). Each entry
216
- * is the position of the parent of its record, or -1 for a root.
216
+ * is the position of the parent of its record, or -1 for a root. A `graph` takes the edges as the third argument
217
+ * (COMPILE.MODULE.GRAPH). Each entry is an array of the positions of the ends of the edges from its record, in order.
217
218
  */
218
- readonly space?: "array" | "tree";
219
+ readonly space?: "array" | "tree" | "graph";
219
220
  }
220
221
  /** The options of a module of a sheet (COMPILE.MODULE.SHEET): the options of a module, and the parts of a sheet. */
221
222
  interface SheetModuleOptions extends ModuleOptions {
@@ -224,11 +225,20 @@ interface SheetModuleOptions extends ModuleOptions {
224
225
  /**
225
226
  * The kind of the values of each column. The printer prints each column after the columns that it reads. A column
226
227
  * that a formula reads before its own formula prints needs its kind here, for example a column that reads itself.
228
+ * A column of lists has a `ListKind` (COMPILE.MODULE.SHEET.LIST).
227
229
  */
228
- readonly kinds?: Readonly<Record<string, Kind>>;
230
+ readonly kinds?: Readonly<Record<string, Kind | ListKind>>;
229
231
  /** The budget of the stack of the search of a run, in estimated frames, as in `SheetRun`. The default is 3000. */
230
232
  readonly budget?: number;
231
233
  }
234
+ /**
235
+ * The kind of a column of lists in a module of a sheet (COMPILE.MODULE.SHEET.LIST): the kind of the items, which can be
236
+ * a list too. With `texts`, a key of an item can be the text of a key of a list literal.
237
+ */
238
+ interface ListKind {
239
+ readonly list: Kind | ListKind;
240
+ readonly texts?: boolean;
241
+ }
232
242
  /** The source of a standalone module, or the reason that the program cannot be one. */
233
243
  type Emitted = {
234
244
  readonly ok: true;
@@ -327,5 +337,5 @@ interface Runtime {
327
337
  /** This function makes the runtime of one set of options. */
328
338
  export declare function createRuntime(options: RuntimeOptions): Runtime;
329
339
  //#endregion
330
- export type { Emitted, Fallback, GenerateOptions, Generated, LExpr, LStmt, LoopProgram, ModuleOptions, PrimOp, Runtime, RuntimeFn, RuntimeOptions, Schema, SheetModuleOptions, Tier2, TierStats, TieredProgram };
340
+ export type { Emitted, Fallback, GenerateOptions, Generated, LExpr, LStmt, ListKind, LoopProgram, ModuleOptions, PrimOp, Runtime, RuntimeFn, RuntimeOptions, Schema, SheetModuleOptions, Tier2, TierStats, TieredProgram };
331
341
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/facts.ts","../src/loop.ts","../src/tiers.ts","../src/module.ts","../src/runtime.ts"],"mappings":";;;KAqCY,aAAa;;;;;KAMb,OAAO;;;;;UAYF;WACN,SAAS,SAAS,eAAe;WACjC,OAAO,SAAS,eAAe;;;UAIzB;WACN,mBAAmB;WACnB,MAAM,SAAS,eAAe;WAC9B,aAAa,SAAS,eAAe;WACrC,SAAS;;;;;KC9CR;;KAeA;;KA2BA;WACG;WAAqB;;WACrB;WAAqB;;WACrB;WAAmB;;WACnB;WAAoB;;WACpB;;WACA;WAAqB,gBAAgB;;WACrC;WAAoB,IAAI;WAAiB,eAAe;;WACxD;WAAoB,IAAI;WAAoB,eAAe;;WAK3D;WAAkB;WAAuB,eAAe;WAAkB,iBAAiB;;WAE3F;WAAoB;;WAEpB;WAAuB;WAAuB,gBAAgB,OAAO,OAAO;;;;;;;;;;;KAW/E;WACG;;WACA;WAAwB;WAAwB;aAAoB,MAAM;aAAgB,MAAM;;;WAChG;WAAqB;;;KAGxB;WAEG;WAAmB;WAAoB,OAAO;;WAE9C;WAAmB;WAAoB,OAAO;;WAE9C;WAAqB,IAAI;WAAgB;WAAyB,MAAM;;WAExE;WAAoB,MAAM;;WAC1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AAG,OAAO;;EAEd,KAAK,GAAG,OAAO,gBAAgB,eAAe,IAAI,MAAM;;;;;EAKxD,KAAK,MAAM,YAAY,GAAG,OAAO,gBAAgB,kBAAkB,UAAU;EAC7E,MAAM,QAAQ,SAAS,eAAe,qBAAqB;EAC3D,KAAK,GAAG;;EAER,KAAK,cAAc,gBAAgB;;EAEnC,QAAQ;;EAER,OAAO,gBAAgB;;EAEvB,MAAM,kBAAkB;EACxB,KAAK,cAAc,cAAc;EACjC,OAAO;EACP,KAAK;EACL,IAAI,0BAA0B;EAC9B,KAAK,yBAAyB;EAC9B,OAAO;EACP,IAAI,cAAc,eAAe,GAAG,OAAO,gBAAgB,eAAe;EAC1E,IAAI,MAAM,SAAS,sCAAsC;;;wBAI3C,cAAc,SAAS,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/facts.ts","../src/loop.ts","../src/tiers.ts","../src/module.ts","../src/runtime.ts"],"mappings":";;;KAqCY,aAAa;;;;;KAMb,OAAO;;;;;UAYF;WACN,SAAS,SAAS,eAAe;WACjC,OAAO,SAAS,eAAe;;;UAIzB;WACN,mBAAmB;WACnB,MAAM,SAAS,eAAe;WAC9B,aAAa,SAAS,eAAe;WACrC,SAAS;;;;;KC9CR;;KAeA;;KA2BA;WACG;WAAqB;;WACrB;WAAqB;;WACrB;WAAmB;;WACnB;WAAoB;;WACpB;;WACA;WAAqB,gBAAgB;;WACrC;WAAoB,IAAI;WAAiB,eAAe;;WACxD;WAAoB,IAAI;WAAoB,eAAe;;WAK3D;WAAkB;WAAuB,eAAe;WAAkB,iBAAiB;;WAE3F;WAAoB;;WAEpB;WAAuB;WAAuB,gBAAgB,OAAO,OAAO;;;;;;;;;;;KAW/E;WACG;;WACA;WAAwB;WAAwB;aAAoB,MAAM;aAAgB,MAAM;;;WAChG;WAAqB;;;KAGxB;WAEG;WAAmB;WAAoB,OAAO;;WAE9C;WAAmB;WAAoB,OAAO;;WAE9C;WAAqB,IAAI;WAAgB;WAA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