Skip to content

Commit

Permalink
Use the tool version we forked from as current runtime version
Browse files Browse the repository at this point in the history
This is the version against which the target runtimes test for their compatibility, except the JS and TS runtimes. This will last until we have start implementing the new target runtime environment, which will need adjustments anyway.
  • Loading branch information
mike-lischke committed Dec 30, 2024
1 parent f67296c commit ec617df
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/codegen/model/OutputFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@
* can be found in the LICENSE.txt file in the project root.
*/

import { antlrVersion } from "../../tool-parameters.js";
import { RuntimeMetaData } from "antlr4ng";
import { Grammar } from "../../tool/Grammar.js";
import { ActionAST } from "../../tool/ast/ActionAST.js";
import { OutputModelFactory } from "../OutputModelFactory.js";
import { Action } from "./Action.js";
import { OutputModelObject } from "./OutputModelObject.js";

export abstract class OutputFile extends OutputModelObject {
private readonly checkVersion = () => {
RuntimeMetaData.checkVersion("4.13.2", RuntimeMetaData.VERSION);
};

public readonly fileName: string;
public readonly grammarFileName: string;
public readonly TokenLabelType?: string;
public readonly inputSymbolType?: string;
public readonly ANTLRVersion = antlrVersion;

/**
* This is the version the runtimes test against for their compatibility.
* We use the version of the old ANTLR4 tool here, until we start implementing the new target
* infrastructure.
*/
public readonly ANTLRVersion = "4.13.2"; // antlrVersion;

public constructor(factory: OutputModelFactory, fileName: string) {
super(factory);
Expand Down

0 comments on commit ec617df

Please sign in to comment.