@tuprolog/arg2p 0.14.2 → 0.16.2

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/package.json CHANGED
@@ -17,9 +17,6 @@
17
17
  "url": "https://github.com/tuProlog/arg2p-kt"
18
18
  },
19
19
  "main": "arg2p.js",
20
- "version": "0.14.2",
21
- "name": "@tuprolog/arg2p",
22
- "dependencies": {
23
- "@tuprolog/parser-utils": "0.4.1"
24
- }
20
+ "version": "0.16.2",
21
+ "name": "@tuprolog/arg2p"
25
22
  }
package/2p-parser-js.js DELETED
@@ -1,39 +0,0 @@
1
- (function (factory) {
2
- if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
- else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
- else {
7
- if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
- throw new Error("Error loading module '2p-parser-js'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-parser-js'.");
9
- }
10
- globalThis['2p-parser-js'] = factory(typeof globalThis['2p-parser-js'] === 'undefined' ? {} : globalThis['2p-parser-js'], globalThis['kotlin-kotlin-stdlib']);
11
- }
12
- }(function (_, kotlin_kotlin) {
13
- 'use strict';
14
- //region block: imports
15
- var THROW_CCE = kotlin_kotlin.$_$.qa;
16
- //endregion
17
- //region block: pre-declaration
18
- //endregion
19
- function isParseCancellationException(obj) {
20
- return jsClassName(obj) === 'ParseCancellationException';
21
- }
22
- function isRecognitionException(obj) {
23
- return jsClassName(obj) === 'RecognitionException';
24
- }
25
- function jsClassName(obj) {
26
- var tmp1_safe_receiver = obj == null ? null : obj.__proto__;
27
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.constructor;
28
- var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.name;
29
- return (tmp == null ? true : typeof tmp === 'string') ? tmp : THROW_CCE();
30
- }
31
- //region block: exports
32
- _.$_$ = _.$_$ || {};
33
- _.$_$.a = isParseCancellationException;
34
- _.$_$.b = isRecognitionException;
35
- //endregion
36
- return _;
37
- }));
38
-
39
- //# sourceMappingURL=2p-parser-js.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../../../2p-kt/2p-kt/parser-js/src/jsMain/kotlin/it/unibo/tuprolog/parser/Antlr4Extensions.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["isParseCancellationException","obj","isRecognitionException","jsClassName"],"mappings":";;;;;;;;;;;;;;;;;;uCAMAA,CAAiCC,GAAjCD,EAA0D;A,IAAgD,OAAhD,YAAY,GAAZ,MAAoB,4B;EAA2B,C;iCAEzGE,CAA2BD,GAA3BC,EAAoD;A,IAA0C,OAA1C,YAAY,GAAZ,MAAoB,sB;EAAqB,C;sBAJ7FC,CAAgBF,GAAhBE,EAAyC;A,QAAK,qBAAL,GAAK,kBAAL,GAAK,U;QAAW,yDAAhB,kBAAgB,Y;cAAa,oCAA7B,kBAA6B,K;IAAe,wDAA5C,GAA4C,c;EAAD,C;;;;;;;;"}