xo-tokenizer2/xo-expression
2025-11-29 20:19:33 -05:00
..
cmake xo-expression xo-reader: type unifier + misc improvements 2025-07-26 17:28:41 -04:00
doc xo-expression type-inference [wip] 2025-07-25 10:42:15 -04:00
example xo-interpreter: add Primitive object, to expose builtin functions 2025-11-27 11:03:41 -05:00
include/xo/expression xo-interpreter: handle litersl strings. Broken memory model. 2025-11-29 20:19:33 -05:00
src/expression xo-interpreter: expose builtin primitives to interpreter 2025-11-29 11:39:34 -05:00
utest xo-expression: typo in comment 2025-07-29 07:19:07 -05:00
.gitignore Add 'xo-expression/' from commit '5ac3c03a0c' 2025-05-11 01:22:16 -05:00
CMakeLists.txt xo-expression: build: install examples 2025-09-22 12:29:05 -04:00
LESSONS Add 'xo-expression/' from commit '5ac3c03a0c' 2025-05-11 01:22:16 -05:00
LICENSE Add 'xo-expression/' from commit '5ac3c03a0c' 2025-05-11 01:22:16 -05:00
README.md Add 'xo-expression/' from commit '5ac3c03a0c' 2025-05-11 01:22:16 -05:00
TODO Add 'xo-expression/' from commit '5ac3c03a0c' 2025-05-11 01:22:16 -05: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