ranger-compiler 3.0.5 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +114 -8
- package/dist/Lang.rgr +149 -13
- package/dist/lib/IsoDate/DateMath.rgr +219 -0
- package/dist/lib/IsoDate/IsoCalendar.rgr +137 -0
- package/dist/lib/IsoDate/IsoDateParse.rgr +57 -0
- package/dist/lib/IsoDateLib.rgr +15 -0
- package/dist/lib/RangerProcess.rgr +82 -4
- package/dist/lib/Regex/RegexMatch.rgr +134 -0
- package/dist/lib/RegexLib.rgr +10 -0
- package/dist/lib/Time.rgr +2 -1
- package/dist/rgrc.js +30176 -22193
- package/package.json +13 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ranger-compiler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Ranger cross-language compiler - compile once, run anywhere",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"example-svgpath": "rgrc -es6 ./examples/SVGPath/SVGPath.rgr -es6 -typescript -o=SVGPath.ts",
|
|
33
33
|
"testcompiler": "rgrc -es6 ./compiler/ng_Compiler.rgr -nodecli -d=./bin -o=testcomp.js",
|
|
34
34
|
"compileg": "rgrc -es6 ./compiler/ng_Compiler.rgr -nodecli",
|
|
35
|
-
"compile": "cross-env RANGER_LIB=./compiler/Lang.rgr:./lib/stdops.rgr node bin/output.js -es6 ./compiler/ng_Compiler.rgr -nodecli -d=./bin -o=output.js && npm run compile:fixcrlf && npm run compile:copylibs",
|
|
35
|
+
"compile": "cross-env RANGER_LIB=./compiler/Lang.rgr:./lib/stdops.rgr node bin/output.js -es6 ./compiler/ng_Compiler.rgr -nodecli -d=./bin -o=output.js && npm run compile:fixcrlf && node scripts/patch-chain-desugar.js && npm run compile:copylibs",
|
|
36
36
|
"compile:fixcrlf": "sed -i '' 's/\\r$//' bin/output.js || sed -i 's/\\r$//' bin/output.js || true",
|
|
37
37
|
"compile:copylibs": "cp ./compiler/Lang.rgr ./bin/Lang.rgr && cp ./lib/stdops.rgr ./bin/stdops.rgr",
|
|
38
38
|
"compile:win": "cross-env RANGER_LIB=./compiler/Lang.rgr;./lib/stdops.rgr node bin/output.js -es6 ./compiler/ng_Compiler.rgr -nodecli -d=./bin -o=output.js && copy .\\compiler\\Lang.rgr .\\bin\\Lang.rgr && copy .\\lib\\stdops.rgr .\\bin\\stdops.rgr",
|
|
@@ -48,7 +48,15 @@
|
|
|
48
48
|
"test:go": "vitest run --config tests/vitest.config.ts compiler-go.test.ts",
|
|
49
49
|
"test:python": "vitest run --config tests/vitest.config.ts compiler-python.test.ts",
|
|
50
50
|
"test:rust": "vitest run --config tests/vitest.config.ts compiler-rust.test.ts",
|
|
51
|
-
"test:
|
|
51
|
+
"test:llvm": "vitest run --config tests/vitest.config.ts compiler-llvm.test.ts",
|
|
52
|
+
"demo:native": "bash scripts/demo-native.sh",
|
|
53
|
+
"demo:hello": "bash scripts/compile-hello.sh",
|
|
54
|
+
"game:build:llvm": "bash scripts/compile-invaders.sh",
|
|
55
|
+
"demo:wasm": "bash scripts/compile-wasm.sh",
|
|
56
|
+
"demo:wasm:collections": "bash scripts/compile-wasm-collections.sh",
|
|
57
|
+
"demo:wasm:serve": "bash scripts/compile-wasm.sh && node scripts/serve-wasm-demo.js",
|
|
58
|
+
"compile:native": "bash scripts/compile-native.sh",
|
|
59
|
+
"compile:wasm": "bash scripts/compile-wasm.sh",
|
|
52
60
|
"test:tsparser": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vitest run --config tests/vitest.config.ts ts-lexer.test.ts",
|
|
53
61
|
"test:watch": "vitest --config tests/vitest.config.ts",
|
|
54
62
|
"gen:simple": "cross-env RANGER_LIB=./compiler/Lang.rgr node bin/output.js -es6 ./generated/SimpleChessBoard.rgr -d=./generated/output -o=SimpleChessBoard.js -nodecli",
|
|
@@ -191,6 +199,7 @@
|
|
|
191
199
|
"@types/node": "^22.19.2",
|
|
192
200
|
"cross-env": "^10.1.0",
|
|
193
201
|
"typescript": "^5.9.3",
|
|
194
|
-
"vitest": "^1.6.0"
|
|
202
|
+
"vitest": "^1.6.0",
|
|
203
|
+
"wabt": "^1.0.39"
|
|
195
204
|
}
|
|
196
205
|
}
|