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 is pronounced like "Pascal".
Features
- Easy to use and easy to learn
- Multi-paradigm
- Null safety by default
- Fast and powerful
- Inspired by Swift and Pascal(Hascal is based on the most effective ideas of the Pascal language)
- Manual memory management
- Compiles to C++
- Compatible with C\C++\Obj-C
- Builtin compile-time FFI system
- Built-in HTTP Library
Examples
Hello World :
function main() : int {
print("Hello World!")
return 0
}
HTTP Request:
use http
function main() : int {
var content = get("https://www.google.com")
print(content)
return 0
}
Regex match:
use regex
function main() : int {
var matched : bool = regex("subject","(sub)(.*)")
print(matched) // Output : 1
return 0
}
You can see more Hascal examples in examples directory.
Documentation
You can find Hascal's documentation, Here.
Contributions
You can contribute to Hascal by opening an issue and forking the repository or contributing to Hascal's documentation.
You can also join the Hascal community on Gitter or Discord and ask & answer questions.
License
The compiler and standard libraries are licensed under the "3-Clause BSD License". Read the License for more information.
About
Copyright © 2019-2023 Hascal Foundation,
all rights reserved.