Skip to content

Latest commit

 

History

History
85 lines (68 loc) · 2.17 KB

File metadata and controls

85 lines (68 loc) · 2.17 KB

The Hascal Programming Language

Website | Docs | Gitter | LinkedIn

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.

Features

  • 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

Examples

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.

Documentation

You can find documentations on installation and using Hascal, Here

Build from source

See build help page

Contributions

Any contribution is welcome :)

graph

License

The compiler and the standard libraries are licensed under the "GNU general public license v3", Read the License for more details.

About

Copyright ©2019-2022 Hascal Foundation,
all rights reserved.

forthebadge