Skip to content
alex2449Public

About

Compiler for a hobby programming language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

ACL

ACL Compiler Language is a hobby programming language. The name is recursive: the goal is to write ACL's own compiler in ACL itself.

The current compiler is written in C++ and emits C, which is then compiled with Clang.

Requirements

  • Linux
  • Clang with C++17 support (also used to compile the generated C)
  • Make
  • fmt
  • GMP (with the C++ bindings, gmpxx)

Building

git clone https://github.com/alex2449/ACL.git
cd ACL/src
make && sudo make install

Usage

aclc <file.acl>

This produces the executable a.out. To generate C instead, run:

aclc --emit-c <file.acl>

Example

function main(args [*]str) returns (int32) {
    print("Hello World");
    return 0;
}

Status

This compiler and language are a work in progress and very early in development.

About

Compiler for a hobby programming language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages