Skip to content

anole-lang/anole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anole Programming Language

New Issue PRs Welcome Gitter License

Quick Usage

Requirements

sudo apt-get install libreadline6-dev

Install

git clone https://github.com/anole-lang/anole.git && cd anole
cmake -S . -B build && cmake --build build -j4
cd build && sudo make install

If you want to remove anole, you can execute cat install_manifest.txt | sudo xargs rm in build/

Test

Run cmake -D CMAKE_BUILD_TYPE=Test -S . -B build && cmake --build build -j4

Usage

~> anole

You can see some examples in example/ or the test/sample-tester.hpp, 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 Anole-Lang, only provides highlight now

ChangeLog

See ChangeLog.md