https://github.com/lcompilers/lc
C++ compiler
https://github.com/lcompilers/lc
Last synced: about 1 year ago
JSON representation
C++ compiler
- Host: GitHub
- URL: https://github.com/lcompilers/lc
- Owner: lcompilers
- License: mit
- Created: 2023-12-07T22:24:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T17:41:54.000Z (about 2 years ago)
- Last Synced: 2025-03-25T11:49:21.896Z (about 1 year ago)
- Language: C++
- Size: 1.3 MB
- Stars: 27
- Watchers: 6
- Forks: 7
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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