🍍 A scripting language halfway between bash and python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
cmake
googletest @ 4e4df22
src
test
.gitignore
.gitmodules
.travis.yml
CMakeLists.txt
README.md
codecov.yml
coverage.sh
example.dur
example.v0.dur
grammar.ebnf

README.md

🍍 durian

Build Status codecov

Anatomy of a Durian

durian

Dependencies

git submodule update --init --recursive

Building

If you use CLion IDE, the project should "just work" if you import it as a new project (since CMake is integrated into CLion), and you should be able to click the build/run button, which will put build artifacts into the cmake-build-debug/ directory by default.

If you are using a Unix-based system (i.e. Linux or macOS) and you would like to build from the command line, you can do so with the following set of commands in the repo's main directory:

mkdir build
cd build/
cmake ..
make

To briefly explain, this:

  • Creates a new directory named build/ and enters it.
  • Calls CMake to create the build system in the current directory (i.e. build/), telling it that the CMakeLists.txt config file is in the parent directory (i.e. ..).
  • Calls make (i.e. the generated build system) in the build/ directory to compile the code.

Durian Sample Code

$ durian example.dur shit
         88                        88
         88                        ""
         88
 ,adPPYb,88 88       88 8b,dPPYba, 88 ,adPPYYba, 8b,dPPYba,
a8"    `Y88 88       88 88P'   "Y8 88 ""     `Y8 88P'   `"8a
8b       88 88       88 88         88 ,adPPPPP88 88       88
"8a,   ,d88 "8a,   ,a88 88         88 88,    ,88 88       88
 `"8bbdP"Y8  `"YbbdP'Y8 88         88 `"8bbdP"Y8 88       88

@ UBC Launch Pad 2018!

thiabaud is eaten!
Delicious!
Yikes!