agency-lang 0.0.95 → 0.0.96
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/dist/lib/parsers/parsers.d.ts +1 -1
- package/dist/lib/parsers/parsers.js +1 -1
- package/dist/lib/templates/backends/agency/template.d.ts +1 -1
- package/dist/lib/templates/backends/agency/template.js +0 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ export declare const comma: Parser<(string[] | ",")[]>;
|
|
|
28
28
|
export declare const plusSign: Parser<("+" | string[])[]>;
|
|
29
29
|
export declare const commaWithNewline: Parser<(string[] | ",")[]>;
|
|
30
30
|
export declare const varNameChar: Parser<string>;
|
|
31
|
-
export declare const AGENCY_TEMPLATE_OFFSET =
|
|
31
|
+
export declare const AGENCY_TEMPLATE_OFFSET = 2;
|
|
32
32
|
/**
|
|
33
33
|
* Wraps a parser to add a `loc` field from tarsec's withSpan.
|
|
34
34
|
* Converts Span { start: Position, end: Position } to SourceLocation { line, col, start, end }.
|
|
@@ -23,7 +23,7 @@ export const varNameChar = oneOf("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRST
|
|
|
23
23
|
However, because every agency code gets rendered in a template that imports some standard functions,
|
|
24
24
|
the line numbers would be off if we didn't account for the template lines.
|
|
25
25
|
*/
|
|
26
|
-
export const AGENCY_TEMPLATE_OFFSET =
|
|
26
|
+
export const AGENCY_TEMPLATE_OFFSET = 2;
|
|
27
27
|
/**
|
|
28
28
|
* Wraps a parser to add a `loc` field from tarsec's withSpan.
|
|
29
29
|
* Converts Span { start: Position, end: Position } to SourceLocation { line, col, start, end }.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const template = "import { print, printJSON, input, sleep, round, fetch, fetchJSON, read, write, readImage, notify, range, mostCommon, keys, values, entries } from \"std::index\";\
|
|
1
|
+
export declare const template = "import { print, printJSON, input, sleep, round, fetch, fetchJSON, read, write, readImage, notify, range, mostCommon, keys, values, entries } from \"std::index\";\n\n{{{body:string}}}";
|
|
2
2
|
export type TemplateType = {
|
|
3
3
|
body: string;
|
|
4
4
|
};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// Any manual changes will be lost.
|
|
4
4
|
import { apply } from "typestache";
|
|
5
5
|
export const template = `import { print, printJSON, input, sleep, round, fetch, fetchJSON, read, write, readImage, notify, range, mostCommon, keys, values, entries } from "std::index";
|
|
6
|
-
import { map, filter, exclude, find, findIndex, reduce, flatMap, every, some, count, sortBy, unique, groupBy } from "std::array";
|
|
7
6
|
|
|
8
7
|
{{{body:string}}}`;
|
|
9
8
|
const render = (args) => {
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.96";
|
package/dist/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.0.
|
|
1
|
+
export const VERSION = "0.0.96";
|