xo-umbrella2/xo-expression
2026-09-27 18:14:10 -04:00
..
cmake build: fix stale cmake export + convert to auto [BUGFIX] [BUILD] 2026-08-04 09:01:45 -04:00
doc git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -04:00
example xo-expression: clang-format include order [TIDY] 2026-08-02 17:40:42 -04:00
include/xo/expression xo-expression: delete o.g. copy of FunctionExprInterface [TIDY] 2026-09-27 18:14:10 -04:00
src/expression xo-expression: include cleanup [TIDY] 2026-08-22 23:38:13 -04:00
utest retire ppdetail loose ends + avoid PpSink ODR footguns [REFACTOR] 2026-08-17 09:43:08 -04:00
.gitignore git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -04:00
.gitrepo git subrepo push xo-expression 2026-06-07 00:00:43 -04:00
CMakeLists.txt git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -04:00
LESSONS git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -04:00
LICENSE git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -04:00
README.md git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -04:00
TODO git subrepo clone (merge) git@github.com:Rconybea/xo-expression.git xo-expression 2026-06-06 22:09:38 -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