Hascal is a general purpose and open source programming language designed to build optimal, maintainable, reliable and efficient software.
NOTES:
- Hascal is still in the very early stages of development.
- Hascal pronounces like "Pascal".
Features
- Easy to use and easy to learn
- Multi-paradigm
- Null safety by default
- Fast and powerful
- Inspired by Swift, Pascal and a bit Haskell
- C++ on backend
- Compatible with C\C++\Obj-C
Examples
Hello World :
function main() : int {
print("Hello World!")
return 0
}
Formatting Strings :
function main() : int {
var name = ReadStr("Enter your name :")
var fmt_str = format("Hi,{}",name)
print(fmt_str)
return 0
}
Functional Programming :
use functional
function main() : int {
var x = 1
var y = 2
var z = 3
var sum = plus(
plus(x,y),z
)
var avg = divide(sum,3)
print("Sum :",sum)
print("Average :",avg)
return 0
}
You can see more Hascal examples in examples folder.
Documentation
You can find Hascal's documentation, Here
Contributions
You can contribute to Hascal by opening an issue or forking the repository and contribute to Hascal's documentation.
You can also join the Hascal community and ask questions.
License
The compiler and standard libraries are licensed under the "MIT License", Read the License for more information.
About
Copyright © 2019-2022 Hascal Foundation,
all rights reserved.