Skip to content

Commit

Permalink
Regenerated test parsers and lexers
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Sep 8, 2023
1 parent 59bedd0 commit 3ce85e2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "jest --testMatch [ \"**/tests/**/*.spec.ts\" ] --no-coverage --watchAll=false --max-worker=1",
"test-ci": "jest --testMatch [ \"**/tests/**/*.spec.ts\" ] --no-coverage --watchAll=false --silent",
"test-coverage": "jest --testMatch [ \"**/tests/**/*.spec.ts\" ] --coverage --silent",
"generate": "java -jar antlr/antlr4-4.13.1-SNAPSHOT-complete.jar -Dlanguage=TypeScript tests/CPP14.g4 tests/Expr.g4 tests/Whitebox.g4 -no-listener -no-visitor -o tests/generated -Xexact-output-dir",
"generate": "java -jar antlr/antlr4-4.13.2-SNAPSHOT-complete.jar -Dlanguage=TypeScript tests/CPP14.g4 tests/Expr.g4 tests/Whitebox.g4 -no-listener -no-visitor -o tests/generated -Xexact-output-dir",
"eslint": "eslint ."
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion tests/generated/CPP14Lexer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from tests/CPP14.g4 by ANTLR 4.13.0
// Generated from tests/CPP14.g4 by ANTLR 4.13.1

import * as antlr from "antlr4ng";
import { Token } from "antlr4ng";

export class CPP14Lexer extends antlr.Lexer {
public static readonly MultiLineMacro = 1;
Expand Down
5 changes: 3 additions & 2 deletions tests/generated/CPP14Parser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from tests/CPP14.g4 by ANTLR 4.13.0
// Generated from tests/CPP14.g4 by ANTLR 4.13.1

import * as antlr from "antlr4ng";
import { Token } from "antlr4ng";

// for running tests with parameters, TODO: discuss strategy for typed parameters in CI
// eslint-disable-next-line no-unused-vars
Expand Down Expand Up @@ -17523,7 +17524,7 @@ export class VirtspecifierContext extends antlr.ParserRuleContext {


export class PurespecifierContext extends antlr.ParserRuleContext {
public _val!: antlr.Token;
public _val!: Token;
constructor(parser?: CPP14Parser, parent?: antlr.ParserRuleContext, invokingState?: number) {
super(parent, invokingState);
this.parser = parser;
Expand Down
3 changes: 2 additions & 1 deletion tests/generated/ExprLexer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from tests/Expr.g4 by ANTLR 4.13.0
// Generated from tests/Expr.g4 by ANTLR 4.13.1

import * as antlr from "antlr4ng";
import { Token } from "antlr4ng";

export class ExprLexer extends antlr.Lexer {
public static readonly VAR = 1;
Expand Down
3 changes: 2 additions & 1 deletion tests/generated/ExprParser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from tests/Expr.g4 by ANTLR 4.13.0
// Generated from tests/Expr.g4 by ANTLR 4.13.1

import * as antlr from "antlr4ng";
import { Token } from "antlr4ng";

// for running tests with parameters, TODO: discuss strategy for typed parameters in CI
// eslint-disable-next-line no-unused-vars
Expand Down
3 changes: 2 additions & 1 deletion tests/generated/WhiteboxLexer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from tests/Whitebox.g4 by ANTLR 4.13.0
// Generated from tests/Whitebox.g4 by ANTLR 4.13.1

import * as antlr from "antlr4ng";
import { Token } from "antlr4ng";

export class WhiteboxLexer extends antlr.Lexer {
public static readonly LOREM = 1;
Expand Down
3 changes: 2 additions & 1 deletion tests/generated/WhiteboxParser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated from tests/Whitebox.g4 by ANTLR 4.13.0
// Generated from tests/Whitebox.g4 by ANTLR 4.13.1

import * as antlr from "antlr4ng";
import { Token } from "antlr4ng";

// for running tests with parameters, TODO: discuss strategy for typed parameters in CI
// eslint-disable-next-line no-unused-vars
Expand Down

0 comments on commit 3ce85e2

Please sign in to comment.