@calcit/procs
Advanced tools
Comparing version 0.8.59 to 0.9.0-a1
{ | ||
"name": "@calcit/procs", | ||
"version": "0.8.59", | ||
"version": "0.9.0-a1", | ||
"main": "./lib/calcit.procs.mjs", | ||
@@ -13,8 +13,8 @@ "devDependencies": { | ||
"cp-mac": "cargo build --release && rm -rfv builds/* && node scripts/cp-version.js && scp builds/* rsync-user@calcit-lang.org:/web-assets/repo/calcit-lang/binaries/macos/", | ||
"eval": "cargo run --bin cr -- -e", | ||
"eval": "cargo run --bin cr -- eval", | ||
"check-all": "yarn compile && yarn try-rs && yarn try-js && yarn try-ir", | ||
"try-rs": "cargo run --bin cr -- calcit/test.cirru -1", | ||
"try-js-brk": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node --inspect-brk js-out/main.mjs", | ||
"try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs", | ||
"try-ir": "cargo run --bin cr -- calcit/test.cirru --emit-ir -1" | ||
"try-js-brk": "cargo run --bin cr -- calcit/test.cirru -1 js && node --inspect-brk js-out/main.mjs", | ||
"try-js": "cargo run --bin cr -- calcit/test.cirru -1 js && node js-out/main.mjs", | ||
"try-ir": "cargo run --bin cr -- calcit/test.cirru -1 js" | ||
}, | ||
@@ -21,0 +21,0 @@ "repository": { |
{ | ||
"name": "@calcit/procs", | ||
"version": "0.8.59", | ||
"version": "0.9.0-a1", | ||
"main": "./lib/calcit.procs.mjs", | ||
@@ -13,8 +13,8 @@ "devDependencies": { | ||
"cp-mac": "cargo build --release && rm -rfv builds/* && node scripts/cp-version.js && scp builds/* rsync-user@calcit-lang.org:/web-assets/repo/calcit-lang/binaries/macos/", | ||
"eval": "cargo run --bin cr -- -e", | ||
"eval": "cargo run --bin cr -- eval", | ||
"check-all": "yarn compile && yarn try-rs && yarn try-js && yarn try-ir", | ||
"try-rs": "cargo run --bin cr -- calcit/test.cirru -1", | ||
"try-js-brk": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node --inspect-brk js-out/main.mjs", | ||
"try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs", | ||
"try-ir": "cargo run --bin cr -- calcit/test.cirru --emit-ir -1" | ||
"try-js-brk": "cargo run --bin cr -- calcit/test.cirru -1 js && node --inspect-brk js-out/main.mjs", | ||
"try-js": "cargo run --bin cr -- calcit/test.cirru -1 js && node js-out/main.mjs", | ||
"try-ir": "cargo run --bin cr -- calcit/test.cirru -1 js" | ||
}, | ||
@@ -21,0 +21,0 @@ "repository": { |
@@ -45,3 +45,3 @@ ### Calcit Scripting Language | ||
```bash | ||
cr -e 'range 100' | ||
cr eval 'range 100' | ||
``` | ||
@@ -52,3 +52,3 @@ | ||
```bash | ||
cr -e ' | ||
cr eval ' | ||
@@ -90,4 +90,4 @@ println "|a demo" | ||
```bash | ||
cr compact.cirru --emit-js # compile to js | ||
cr compact.cirru --emit-js --emit-path=out/ # compile to js and save in `out/` | ||
cr compact.cirru js # compile to js | ||
cr compact.cirru js --emit-path=out/ # compile to js and save in `out/` | ||
``` | ||
@@ -145,8 +145,8 @@ | ||
# run tests in Node.js | ||
cargo run --bin cr -- calcit/test.cirru --emit-js -1 && yarn try-js | ||
cargo run --bin cr -- calcit/test.cirru -1 js && yarn try-js | ||
# run snippet | ||
cargo run --bin cr -- -e 'range 100' | ||
cargo run --bin cr -- eval 'range 100' | ||
cr compact.cirru --emit-ir # compiles intermediate representation into program-ir.cirru | ||
cr compact.cirru -1 ir # compiles intermediate representation into program-ir.cirru | ||
``` | ||
@@ -153,0 +153,0 @@ |
267821