Skip to content
ccckmit edited this page Jul 25, 2022 · 6 revisions

Script1

Script1 is a meta programming language that can be translated to JavaScript / Python / Dart.

You may use the translator s1 to translate script1 code *.s1 into *.js *.py *.dart.

s1 command line tool

file: hello.s1

name:='script1'
log('hello', name)

translate & run

$ ./s1 -m prog/hello.s1 -o out/hello.js   
$ deno run out/hello.js
hello script1

$ s1 -m hello.s1 -o hello.py     // output python
$ python hello.py                // run hello.py
hello script1

$ s1 -m hello.s1 -o hello.dart   // output dart
$ dart run hello.dart            // run hello.dart
hello script1

Script1

Clone this wiki locally