A compiler frontend for a Basic programming language dialect, based on LLVM. The name "LBC" itself is not an acronym - it is the full name of the project.
- OS: Windows 10
- Compiler: MSVC 2019+
- Utilities: LLVM 9.0+, ANTLR 4.8+
- Make: CMake 3.15+
Make sure you have LLVM and ANTLR 4 runtime built and installed with CMake, and have ANTLR 4 runtime includes added to your PATH, on which the CMakeLists.txt depends.
Execute following commands in a Command Prompt or PowerShell window under the project root directory:
generate.bat
build.batAnd the executable is produced in bin\ directory.
lbc.cmd is a shortcut for testing. Place your test program under the bin\ directory (namely, bin\test.bas), and you can test the compiler quickly after building by:
lbc.cmd test.basWhich is equivalent to:
cd bin
Release\lbc.exe <test.bas
cd ..Execute test.bat under the test\ directory after building the compiler to perform a test.
GNU Affero General Public License v3.0.