An open API service indexing awesome lists of open source software.

https://github.com/lcompilers/lc

C++ compiler
https://github.com/lcompilers/lc

Last synced: about 1 year ago
JSON representation

C++ compiler

Awesome Lists containing this project

README

          

# LC

LC is the C and C++ frontend to LCompilers.

# Build and Run

mamba env create -f environment_unix.yml
conda activate lc
./build.sh
lc examples/expr2.c
lc --show-clang-ast examples/expr2.c
lc --show-asr examples/expr2.c
lc --show-llvm examples/expr2.c

# Tests

To run tests, do:

CPATH=$CONDA_PREFIX/include ./run_tests.py
cd integration_tests
CPATH=$CONDA_PREFIX/include ./run_tests.py