@arcgis/arcade-parser 5.2.0-next.94

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/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ # Licensing
2
+
3
+ COPYRIGHT Esri
4
+
5
+ All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
6
+
7
+ This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement.
8
+ You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
9
+
10
+ See use restrictions at https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf.
11
+
12
+ For additional information, contact:
13
+ Environmental Systems Research Institute, Inc.
14
+ Attn: Contracts and Legal Services Department
15
+ 380 New York Street
16
+ Redlands, California, USA 92373
17
+ USA
18
+
19
+ email: legal@esri.com
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # ArcGIS Maps SDK for JavaScript - Arcade Parser
2
+
3
+ **No Esri Technical Support included.**
4
+
5
+ Package that is part of the [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript).
6
+
7
+ It is not intended to be used directly, but rather used as a dependency by other packages in the SDK.
8
+
9
+ ## License
10
+
11
+ This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package, and at https://js.arcgis.com/5.2/LICENSE.txt.
12
+ For third party notices, see https://js.arcgis.com/5.2/third-party-notices.txt.
@@ -0,0 +1,21 @@
1
+ import type { ParseOptions, Program, Token, TokenizeOptions, Delegate } from "./types.js";
2
+
3
+ export * from "./types.js";
4
+ export * from "./utils.js";
5
+
6
+ /**
7
+ * @param code
8
+ * @param options
9
+ * @param delegate
10
+ */
11
+ export function parse(code: string, options?: ParseOptions, delegate?: Delegate): Program;
12
+
13
+ /**
14
+ * @param code
15
+ * @param options
16
+ * @param delegate
17
+ */
18
+ export function tokenize(code: string, options?: TokenizeOptions, delegate?: (entry: Token) => Token): {
19
+ tokens: Token[];
20
+ errors?: Error[];
21
+ };