@gooddata/maql-antlr4ts 0.5.1-27ba8ee3.0 → 0.5.1-2a72ec65.0
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/NOTICE +76 -0
- package/README.md +17 -17
- package/package.json +13 -12
package/NOTICE
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
================================================================================
|
|
2
|
+
================================================================================
|
|
3
|
+
|
|
4
|
+
Third-Party Software for @gooddata/maql-antlr4ts
|
|
5
|
+
|
|
6
|
+
--------------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
The following 3rd-party software packages may be used by or distributed with
|
|
9
|
+
@gooddata/maql-antlr4ts. Any information relevant to third-party vendors listed
|
|
10
|
+
below are collected using common, reasonable means.
|
|
11
|
+
|
|
12
|
+
Date generated: 2026-10-20
|
|
13
|
+
|
|
14
|
+
================================================================================
|
|
15
|
+
================================================================================
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
================================================================================
|
|
19
|
+
|
|
20
|
+
Dependencies
|
|
21
|
+
|
|
22
|
+
================================================================================
|
|
23
|
+
|
|
24
|
+
- antlr4ts (0.5.0-alpha.4) [BSD-3-Clause]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
--------------------------------------------------------------------------------
|
|
28
|
+
Package Title: antlr4ts (0.5.0-alpha.4)
|
|
29
|
+
|
|
30
|
+
Package Locator: npm+antlr4ts$0.5.0-alpha.4
|
|
31
|
+
|
|
32
|
+
Package Depth: Direct
|
|
33
|
+
--------------------------------------------------------------------------------
|
|
34
|
+
|
|
35
|
+
* Declared Licenses *
|
|
36
|
+
BSD-3-Clause
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
[The "BSD license"]
|
|
40
|
+
Copyright (c) 2016 The ANTLR Project
|
|
41
|
+
All rights reserved.
|
|
42
|
+
|
|
43
|
+
Redistribution and use in source and binary forms, with or without
|
|
44
|
+
modification, are permitted provided that the following conditions
|
|
45
|
+
are met:
|
|
46
|
+
|
|
47
|
+
1. Redistributions of source code must retain the above copyright
|
|
48
|
+
notice, this list of conditions and the following disclaimer.
|
|
49
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
50
|
+
notice, this list of conditions and the following disclaimer in the
|
|
51
|
+
documentation and/or other materials provided with the distribution.
|
|
52
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
53
|
+
contributors may be used to endorse or promote products derived from
|
|
54
|
+
this software without specific prior written permission.
|
|
55
|
+
|
|
56
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
57
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
58
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
59
|
+
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
60
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
61
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
62
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
63
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
64
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
65
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
* Package Info *
|
|
69
|
+
|
|
70
|
+
Authors: Terence Parr, Sam Harwell, and Burt Harris
|
|
71
|
+
|
|
72
|
+
Package Homepage: https://github.com/tunnelvisionlabs/antlr4ts
|
|
73
|
+
|
|
74
|
+
Package Download URL: https://registry.npmjs.org/antlr4ts/-/antlr4ts-0.5.0-alpha.4.tgz
|
|
75
|
+
|
|
76
|
+
--------------------------------------------------------------------------------
|
package/README.md
CHANGED
|
@@ -33,32 +33,32 @@ const normalizedAst = normalizer.visit(ast);
|
|
|
33
33
|
|
|
34
34
|
## Local development
|
|
35
35
|
|
|
36
|
-
> Requirements: [`
|
|
37
|
-
|
|
38
|
-
| command
|
|
39
|
-
|
|
40
|
-
| `
|
|
41
|
-
| `
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
36
|
+
> Requirements: [`pnpm`](https://pnpm.io)
|
|
37
|
+
|
|
38
|
+
| command | effect |
|
|
39
|
+
|------------------|-------------------------------------------------------------------|
|
|
40
|
+
| `pnpm install` | install all dependencies |
|
|
41
|
+
| `pnpm build` | generate source files, compile files, bundle files into a package |
|
|
42
|
+
| `pnpm antlr4` | generate source files from MAQL grammar |
|
|
43
|
+
| `pnpm funcdef` | generate source files from MAQL function definitions |
|
|
44
|
+
| `pnpm compile` | compile TypeScript |
|
|
45
|
+
| `pnpm rollup -c` | bundle files into a package |
|
|
46
|
+
| `pnpm test` | run ESLint, Prettier, and all tests |
|
|
47
|
+
| `pnpm test-ci` | run `pnpm test` with CI options and junit.xml output file |
|
|
48
|
+
| `pnpm fix` | automatically fix ESLint and Prettier errors |
|
|
49
49
|
|
|
50
50
|
## Linking the package to other modules
|
|
51
51
|
|
|
52
52
|
First install the dependencies, then build and bundle the module.
|
|
53
53
|
|
|
54
|
-
`
|
|
54
|
+
`pnpm install`
|
|
55
55
|
|
|
56
|
-
`
|
|
56
|
+
`pnpm build`
|
|
57
57
|
|
|
58
|
-
> Warning: Do not use `
|
|
58
|
+
> Warning: Do not use `pnpm link` or `npm link`.
|
|
59
59
|
>
|
|
60
60
|
> Currently, there exists an issue which causes a runtime error when symbolically linking
|
|
61
|
-
> this package using `
|
|
61
|
+
> this package using `pnpm` or `npm`. The error seems to involve the `antlr4ts` library,
|
|
62
62
|
> because it results in every single token having index of -1.
|
|
63
63
|
|
|
64
64
|
Use [yalc](https://github.com/wclr/yalc) to link the package to other repositories.
|
package/package.json
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/maql-antlr4ts",
|
|
3
3
|
"description": "TypeScript lexer and parser for MAQL",
|
|
4
|
-
"version": "0.5.1-
|
|
4
|
+
"version": "0.5.1-2a72ec65.0",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
-
"license": "
|
|
7
|
+
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/gooddata/gdc-nas.git",
|
|
11
11
|
"directory": "libraries/calq/maql-antlr4ts"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
|
-
"dist"
|
|
14
|
+
"dist",
|
|
15
|
+
"NOTICE"
|
|
15
16
|
],
|
|
16
17
|
"scripts": {
|
|
17
18
|
"antlr4": "cd ../maql-parser/src/main/antlr && antlr4ts MaqlLexer.g4 -o ../../../../maql-antlr4ts/src/gen/antlr && antlr4ts -visitor MaqlParser.g4 -o ../../../../maql-antlr4ts/src/gen/antlr -lib ../../../../maql-antlr4ts/src/gen/antlr",
|
|
18
|
-
"funcdef": "
|
|
19
|
-
"compile": "
|
|
20
|
-
"build": "(
|
|
21
|
-
"pretest": "
|
|
19
|
+
"funcdef": "pnpm tsc -p ./scripts && node scripts/build/funcdefParser.js ../maql-parser/src/main/resources/funcdef.json src/gen/type/functions.ts",
|
|
20
|
+
"compile": "pnpm tsc -p ./tsconfig.build.json",
|
|
21
|
+
"build": "(pnpm antlr4 & pnpm funcdef) && pnpm compile && pnpm rollup -c",
|
|
22
|
+
"pretest": "pnpm prettier-check && pnpm lint",
|
|
22
23
|
"test": "jest",
|
|
23
|
-
"test-ci": "
|
|
24
|
-
"lint": "
|
|
24
|
+
"test-ci": "pnpm test --ci --watchAll=false --maxWorkers=4 --reporters=default --reporters=jest-junit",
|
|
25
|
+
"lint": "pnpm eslint src test --ext ts",
|
|
25
26
|
"prettier-check": "prettier --check './**/*.{ts,js,json}'",
|
|
26
27
|
"prettier-write": "prettier --write './**/*.{ts,js,json}'",
|
|
27
|
-
"fix": "
|
|
28
|
-
"bump": "
|
|
28
|
+
"fix": "pnpm prettier-write && pnpm lint --fix",
|
|
29
|
+
"bump": "pnpm version patch --no-git-tag-version --no-git-checks"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@gooddata/eslint-config": "^4.0.0",
|
|
@@ -55,5 +56,5 @@
|
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"antlr4ts": "^0.5.0-alpha.4"
|
|
57
58
|
},
|
|
58
|
-
"packageManager": "
|
|
59
|
+
"packageManager": "pnpm@11.17.0"
|
|
59
60
|
}
|