arena allocator + incremental garbage collector
  • C++ 98.4%
  • CMake 1.6%
Find a file
2024-07-02 14:19:57 -04:00
cmake xo-expression: initial commit (constant + primitive) 2024-06-13 15:20:36 -04:00
example xo-expression: + Primitive::intrinsic 2024-06-21 14:05:49 -04:00
include/xo/expression xo-expression: + ptr to originating lambda 2024-07-02 14:19:57 -04:00
src/expression xo-expression: + ptr to originating lambda 2024-07-02 14:19:57 -04:00
.gitignore xo-expression: initial commit (constant + primitive) 2024-06-13 15:20:36 -04:00
CMakeLists.txt xo-expression: initial commit (constant + primitive) 2024-06-13 15:20:36 -04:00
LESSONS xo-expression: ++ docs 2024-06-18 16:56:14 -04:00
LICENSE xo-expression: initial commit (constant + primitive) 2024-06-13 15:20:36 -04:00
README.md xo-expresion: doc: + links 2024-06-17 12:26:35 -04:00
TODO xo-expression: ++ docs 2024-06-18 16:56:14 -04:00

xo-expression library

A library for representing abstract syntax trees for EGAD (a small expression-based language). See also

Getting Started

build + install xo-cmake dependency

Installs a few cmake ingredients, along with a build assistant xo-build for XO projects such as this one.

build + install other XO dependencies

$ xo-build --clone --configure --build --install xo-indentlog
$ xo-build --clone --configure --build --install xo-refnct
$ xo-build --clone --configure --build --install xo-subsys
$ xo-build --clone --configure --build --install xo-reflect

Note: can use xo-build -n to dry-run here

copy xo-expression repository locally

$ xo-build --clone xo-expression

or eqivalently

$ git clone git@github.com:Rconybea/xo-expression.git

build + install xo-expression

$ xo-build --configure --build --install xo-expression

or equivalently:

$ PREFIX=/usr/local  # or wherever you prefer
$ cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -S xo-expression -B xo-jit/.build
$ cmake --build xo-expression/.build
$ cmake --install xo-expression/.build

build for unit test coverage

$ cmake -DCMAKE_BUILD_TYPE=coverage -DCMAKE_INSTALL_PREFIX=$PREFIX xo-expression/.build-ccov
$ cmake --build xo-expression/.build-ccov

LSP support

$ cd xo-expression
$ ln -s build/compile_commands.json  # lsp will look for compile_commands.json in the root of the source tree