Skip to content

zhuguangxiang/koala-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's Koala

Koala(🐻) is a modern programming language. It is simple and extensible.

Features of Koala

  • Easy to use
  • Object-oriented Programming
  • Functional Programming
  • Type safe
  • Garbage Collection

Install

git clone https://github.com/zhuguangxiang/koala-lang.git
cd koala-lang/
mkdir build
cd build/
cmake ..
make

For GNU/Linux, needs cmake, gcc, flex/bison, for example, in Ubuntu:

sudo apt install build-essential
sudo apt install flex
sudo apt install bison
sudo apt install cmake

// set environment variables
echo 'export PATH="~/.local/bin:$PATH"' >> ~/.profile

For Apple/MacOS, needs cmake, XCode, flex/bison, in MacOS, using homebrew to install dependencies softwares.

// XCode installed from `Apple` app store. It is too large, be patient!

brew install cmake
brew install flex
brew install bison

// set environment variables
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/flex/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="~/.local/bin:$PATH"' >> ~/.bash_profile

The program koala is at build/src/koala, you can copy it to other places.

// `make install` will install `koala` into '~/.local/bin'
// so needs set `~/.local/bin` into environment variable `PATH`
make install

Manual

Koala Language Manual

Home page

https://www.koala-lang.org/

The Author

Koala(🐻) was originally designed and developed by Zhu Guangxiang (James) since 2018.

zhuguangxiang@gmail.com