0.0.0-nightly.b8e3e6100edcda1f5c968b4f318be4fa606bbb60 • Published 3 years ago
uguisu-js v0.0.0-nightly.b8e3e6100edcda1f5c968b4f318be4fa606bbb60
Uguisu
The Uguisu is a statically typed scripting language.
Not ready to use yet.
The syntax is like this:
fn calc(x: number): number {
if x == 0 {
return 1;
} else {
return calc(x - 1) * 2;
}
}
fn main() {
var value = 10;
console.writeNum(calc(value));
}Syntaxes
- English (Not translated yet.)
- 日本語
Install
Node.js and npm installation is required.
Local installation is also ok if only the JavaScript API is used.
$ npm i -g uguisu-jsCommand line
Usage: uguisu [options] [commands]
Examples:
uguisu run <projectDir>
uguisu check <projectDir>
uguisu run --skip-check <projectDir>
uguisu <command> -h
uguisu -v
Options:
-h, --help Print help message.
-v, --version Print Uguisu version.
Commands:
run Run a uguisu project.
check Perform the check for a project.The following command runs a project. A code check is performed before running the code.
$ uguisu run ./your-projectJavaScript API
Uguisu only supports the ES Modules (ESM).
import { Uguisu } from 'uguisu-js';
const uguisu = new Uguisu({
stdout(str) {
console.log(str);
}
});
const projectDir = './your-project';
// Check code and Run
uguisu.run(projectDir);Code checking and running can also be separated:
// Check code
uguisu.check(projectDir);
// Run
uguisu.run(projectDir, { skipCheck: true });License
MIT License
0.8.2
3 years ago
0.8.1
3 years ago
0.0.0-nightly.e618c18
3 years ago
0.8.0-alpha.6
3 years ago
0.8.0-alpha.5
3 years ago
0.8.0-alpha.4
3 years ago
0.8.0-alpha.3
3 years ago
0.8.0-alpha.2
3 years ago
0.8.0-alpha.1
3 years ago
0.7.0
3 years ago
0.7.0-alpha.8
3 years ago
0.7.0-alpha.7
3 years ago
0.7.0-alpha.6
3 years ago
0.7.0-alpha.5
3 years ago
0.7.0-alpha.4
3 years ago
0.7.0-alpha.3
3 years ago
0.7.0-alpha.2
3 years ago
0.7.0-alpha.1
3 years ago