lcompilers / lc

C++ compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

C++ compiler

License:MIT License


Languages

Language:C++ 91.9%Language:Python 4.3%Language:C 2.5%Language:Yacc 0.9%Language:CMake 0.5%Language:Shell 0.0%