Ploy is a (work-in-progress) lisp-like language for my own fun and learning.
Building Ploy requires the following:
- A c11 compiler
- CMake
- bdwgc
- GNU Readline
#!/usr/bin/env ploy
(print "Hello, world!")
sudo dnf install -y cmake gc-devel ninja-build pkgconf readline-devel
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON
ninja -C build
-DCMAKE_BUILD_TYPE:STRING="Debug"
requires ASan/UBSan. If you want to avoid
these dependencies use -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo"
instead.
sudo dnf install -y clang-tools-extra libasan libubsan
cmake -B build -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON
ninja -C build
ninja -C build clang-format
ninja -C build clang-tidy
ninja -C build
ninja -C build test
$ ./build/ploy -h
usage: ploy [-h] [-v] [-e EXPR] [-f FILE]
-h Show help output
-v Show version
-e EXPR Evaluate an expression
-f FILE Evaluate contents of a FILE