Skip to content

Commit

Permalink
Switch to antlr4ng
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Lischke <mike@lischke-online.de>
  • Loading branch information
mike-lischke committed Dec 8, 2023
1 parent 5ab5d8d commit fb4fa27
Show file tree
Hide file tree
Showing 13 changed files with 6,523 additions and 7,109 deletions.
25 changes: 25 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Changelog for Java2TypeScript

### 1.1.0

- Switched from antlr4ts to antlr4ng. Regenerated all parser files.
- Added support for automatic adding of the `override` keyword for inherited methods.
- Fixed member ordering for nested classes.
- Fixed resolution of types from which another type derives or which it implements.
- Fixed wrong exclusion of transpiled files from tsconfig.json.
- Updated documentation.
- The javaLib setting now can either be undefined (defaulting to "jree"), a node package, a relative or an absolute path. Relative paths are resolved against the output path.
- Updated the type information from the Java documentation.
- Fully implemented annotation handling in the converter tool.
- Implemented a new feature where Java types are written without full qualifier. Instead constant reassignments and type aliases are generated from the imports in a file. This brings the generated code even closer to that of Java. See the new configuration setting `useUnqualifiedTypes`.
- Removed the automatic conversion of interfaces with implemented methods to abstract classes. Instead a side class and declaration merging should be used.
- Improved handling of nested types.
- Type aliases for number (e.g. int, long, etc.) are now imported using a type import.

### 1.0.1 - 1.0.2

Small bug fixes.

### 1.0.0

First public release.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"ignoreWords": [
"ANTL",
"COLONCOLON",
"Dlanguage",
"FEFFFFFFFFFFFFF",
"Harwell",
"Hashtable",
Expand Down
1,153 changes: 508 additions & 645 deletions parser/generated/JavaLexer.ts

Large diffs are not rendered by default.

11,694 changes: 5,720 additions & 5,974 deletions parser/generated/JavaParser.ts

Large diffs are not rendered by default.

Loading

0 comments on commit fb4fa27

Please sign in to comment.