Releases: BHznJNs/Calculator.rs
Releases · BHznJNs/Calculator.rs
Cursor bug fixed
1.9.0b `todo`s added && cursor bug fixed
Customized readline && Highlighted REPL
1.9.0a disabled unsupported character input
Colored output && command-line args appended
Update log
- Colored output
- Command-line args appended:
- -v, --version
- print current executable file version and exit.
- -h, --help
- print this help message.
- -t, --timer
- print extra execute duration message code execution.
- -hd, --headfile
- directly import variables in head files, must with script paths following.
- -v, --version
- Boolean type added
1.7.4
1.7.3
Compose resolver update & OOP support
1.6.0 compose resolver update & OOP support
Script executing optimized
1.4.3 Comments added
Function & Array
> test_func = fn(i $num) {i + 1}
> test_func(1)
= 2
> test_arr = [1, 2, 3]
= [
1, 2, 3,
]
> push(test_arr, 4)
> test_arr
= [
1, 2, 3, 4,
]
`for` & `if` statement supported
a = 0
b = 1
for 10 {c = a + b; a = b; b = c}
out c # 89