Skip to content

Commit 9975828

Browse files
committed
installing ANTLR4 in CI
1 parent ea7fbc3 commit 9975828

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
cache: 'npm'
3939
- name: Install
4040
run: npm install
41+
- name: Install ANTLR4
42+
run: pip install antlr4-tools
4143
- name: Build
4244
run: npm run build
4345
- name: Run integration

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"types": "dist/src/index.d.ts",
1515
"scripts": {
16-
"antlr": "antlr -Dlanguage=TypeScript -visitor -no-listener -o src/ antlr/Solidity.g4 && npm run tokens",
16+
"antlr": "antlr4 -Dlanguage=TypeScript -visitor -no-listener -o src/ antlr/Solidity.g4 && npm run tokens",
1717
"tokens": "node ./scripts/tokens-string.js",
1818
"build:browser": "esbuild src/index.ts --outfile=dist/index.iife.js --bundle --sourcemap --format=iife --global-name=SolidityParser --inject:./process-shim.js",
1919
"build:node": "esbuild src/index.ts --outfile=dist/index.cjs.js --bundle --sourcemap --format=cjs --platform=node --target=node12 --define:import.meta.url='_importMetaUrl' --banner:js=\"const _importMetaUrl=require('url').pathToFileURL(__filename)\"",

0 commit comments

Comments
 (0)