Skip to content

Commit

Permalink
Preparing first public release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Jan 5, 2025
1 parent df4d874 commit a34abeb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
39 changes: 31 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "antlr-debug",
"request": "launch",
"name": "Debug Current Grammar",
"input": "/Volumes/Extern/Work/projects/ANTLRng/tests/temp/input.txt",
"input": "input.txt",
"visualParseTree": true,
"startRule": "a",
"grammar": "${file}",
Expand All @@ -21,10 +21,35 @@
"runtimeArgs": [
"tsx",
"cli/runner.ts",
"-Dlanguage=Java",
"-Dlanguage=TypeScript",
"--exact-output-dir",
"-o temp",
"tests/grammars/Java.g4"
"-l",
"-v",
"--output-directory",
"temp/Test/abb",
],
"sourceMaps": true,
"stopOnEntry": false,
"smartStep": true,
"console": "integratedTerminal",
"preLaunchTask": "tsc: watch",
"trace": false
},
{
"type": "node",
"request": "launch",
"name": "Launch antlr-ng grammar-v4",
"runtimeExecutable": "npx",
"runtimeArgs": [
"tsx",
"cli/runner.ts",
"-Dlanguage=TypeScript",
"-l",
"-v",
"--atn",
"-o",
"grammar-v4-test/",
"/Volumes/Extern/Work/projects/grammars-v4/golang/GoLexer.g4",
],
"sourceMaps": true,
"stopOnEntry": false,
Expand All @@ -37,12 +62,10 @@
"type": "node",
"request": "launch",
"name": "Launch Unicode extraction",
"runtimeExecutable": "npx",
"args": [],
"runtimeArgs": [
"--experimental-specifier-resolution=node",
"--no-warnings",
"--loader",
"ts-node/esm",
"tsx",
"build/generate-unicode-data.ts",
],
"sourceMaps": true,
Expand Down
5 changes: 3 additions & 2 deletions build/generate-unicode-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ const loadPropertyAliases = async (): Promise<void> => {
}

if (parts.length >= 5 && (parts[4].trim() === "True" || parts[4].trim() === "False")) {
// We have a binary property here. Add a lookup entry for it and add it to the list of binary
// We have a binary property here. Add a lookup entry for it and add it to the list
// of binary properties.
addBinaryPropertyEntry = true;
continue;
}

// Canonical_Combining_Class is a special cases. It has an additional field in the second position,
// Canonical_Combining_Class is a special case. It has an additional field in the second position,
// which we ignore here.
if (longName === "canonical_combining_class" && parts.length > 3) {
parts.splice(1, 1);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antlr-ng",
"version": "0.4.0",
"version": "0.5.0",
"description": "Next generation ANTLR Tool",
"type": "module",
"author": "Mike Lischke",
Expand Down

0 comments on commit a34abeb

Please sign in to comment.