yagipy / althea Goto Github PK
View Code? Open in Web Editor NEWAlthea is a programming language providing reference counting with ownership analysis.
License: Mozilla Public License 2.0
Althea is a programming language providing reference counting with ownership analysis.
License: Mozilla Public License 2.0
func main() i32 {
printf("%d", 10)
0
}
// standard output: 10
false-> true: https://github.com/yagipy/althea/blob/main/compiler/alc_codegen_llvm/src/lib.rs#L114
out
// 例
func main() u64 {
for i = 0; i <= 5; i++ {
println("Hello, world.")
}
0
}
func main() u64 {
let a = 10
println("Hello, world1")
println("Hello, world2")
println(a)
println(10 + 2 * 3)
0
}
// Hello, world1
// Hello, world2
// 10
// 16
\n
がエスケープされてしまうのを解消する下記コードを実行すると
func main() i32 {
println("Hello, world\nThis is NewLine")
0
}
下記が出力される(改行されない)
Hello, world\nThis is NewLine%
上記と同じコードを実行すると、下記が出力される(改行される)
Hello, world
This is NewLine%
下記コードのように直接改行すると想定される挙動になるので、これを参考にしつつ進める
func main() i32 {
println("Hello, world
This is NewLine")
0
}
Hello, world
This is NewLine%
Lexerの段階で(--debugをつけると確認できる)、すでにエスケープされている可能性が高い
List of features/changes we want to finish before releasing an official v1 version:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.