Hascal is a general-purpose open source programming language that makes it easy to build simple,optimal, reliable, and efficient software.
NOTE: Hascal is currently under development.
- Cross Platform (Linux, Windows, MacOS, BSD)
- Fast & Powerful
- Easy to learn
- C-Family syntax, inspired by Swift, TypeScript
- Compiles to binary with dmd
- Native binaries with no dependency
- Garbage Collection and Manual Memory Allocation
- Compatible with D\C\C++\Objective C
Hello World :
function main() : int {
print("Hello World!")
return 0
}
Read from stdin :
function main() : int{
print("Enter your name :")
var name = ReadStr()
print("Hi,",name)
return 0
}
HTTP Response :
use http
function main(): int {
print(get("google.com"))
return 0
}
System Command :
use os
function main() : int {
system("gcc --version")
return 0
}
You can see more Hascal examples in examples folder.
You can find documentations on installation and using Hascal, Here
See build help page
Any contribution is welcome :)
The compiler and the standard libraries are licensed under the "GNU general public license v3", Read the License for more details.
Copyright ©2019-2022 Hascal Foundation,
all rights reserved.