Trc is an easy-learn programming language. It can be fast,safe and effective.
Platform | Status |
---|---|
Linux | |
Winodows | |
Macos |
as easy as Python
as fast as Java
as small as lua
As a modern language,rust provide us a lot of useful features and I enjoy myself in it.So this project is developed by pure rust.
Like other common rust project.Just use cargo build --all
Running tests is like other rust project,too.Just cargo test --all
But in order to read test data file,please run in the root dir.
The project use rust-i18n to provide I18N(Internationalization) and L10N(localiation) support for the Trc.
You can do it following the docs about rust-i18n
println("hello world!")
a := int(input())
while a > 0 {
if a %2 == 0{
println("{}", a)
}
a = a- 1
}
func fastpow(a: int, b: int) int {
if b == 0 {
return 1
}
tmp := fastpow(a, b // 2)
tmp = tmp * tmp
if b % 2 != 0 {
tmp = tmp * a
}
return tmp
}
print("{}", fastpow(2, 3))
Wechat:angelgel2020
QQ:3570249647
email: limuyang202011@163.com