Skip to content

Repository files navigation

Anole Programming Language

New Issue PRs Welcome Gitter License

Quick Usage

Requirements

Install Rust. Anole tracks the latest stable Rust toolchain.

Install

git clone https://github.com/anole-lang/anole.git && cd anole
cargo install --path .

To remove Anole, run cargo uninstall anole.

Test

Run cargo test --all-targets. Language behavior tests live in tests/compile; see its README for adding and updating cases.

Usage

$ anole

You can find examples in example/. This is the yin-yang puzzle for fun:

(@(yang): @(yin): yin(yang))
    ((@(cc) { print("*"); return cc; })
        (call_with_current_continuation(@(cont): cont)))
    ((@(cc) { print("@"); return cc; })
        (call_with_current_continuation(@(cont): cont)));

Extension in Visual Studio Code

Search for Anole-Lang. It currently provides syntax highlighting.

About

The Anole Programming Language

Topics

Resources

Code of conduct

Stars

17 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages