Skip to content

Commit

Permalink
OutputModelFactory + SourceGenTriggers
Browse files Browse the repository at this point in the history
- The output model factory has to allow null results on almost all methods.
- Added SourceGenTriggers tree walker (not cleaned up yet).
  • Loading branch information
mike-lischke committed Oct 10, 2024
1 parent 8f2be16 commit a952a2a
Show file tree
Hide file tree
Showing 43 changed files with 4,718 additions and 585 deletions.
37 changes: 9 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"antlr4ng": "3.0.7",
"commander": "12.1.0",
"fast-printf": "1.6.9",
"stringtemplate4ts": "1.0.1",
"stringtemplate4ts": "1.0.2",
"unicode-properties": "1.4.1"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/antlr3/tree/TreeRuleReturnScope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import type { Tree } from "./Tree.js";
* have to be {@link Object}.
*/
export class TreeRuleReturnScope {

/** First node or root node of tree matched for this rule. */
public start: Tree | null = null;
public stop: Tree | null = null;
Expand Down
2 changes: 2 additions & 0 deletions src/tree-walkers/BlockSetTransformer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* java2ts: keep */

// $ANTLR 3.5.3 org/antlr/v4/parse/BlockSetTransformer.g

import {
Expand Down
3 changes: 2 additions & 1 deletion src/tree-walkers/GrammarTreeVisitor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* java2ts: keep */

/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
Expand Down Expand Up @@ -5582,7 +5584,6 @@ export class GrammarTreeVisitor extends TreeParser {
protected exitElementOption(tree: GrammarAST): void { }
}


export namespace GrammarTreeVisitor {
export type grammarSpec_return = InstanceType<typeof GrammarTreeVisitor.grammarSpec_return>;
export type prequelConstructs_return = InstanceType<typeof GrammarTreeVisitor.prequelConstructs_return>;
Expand Down
2 changes: 2 additions & 0 deletions src/tree-walkers/LeftRecursiveRuleWalker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* java2ts: keep */

// $ANTLR 3.5.3 org/antlr/v4/parse/LeftRecursiveRuleWalker.g


Expand Down
Loading

0 comments on commit a952a2a

Please sign in to comment.