Skip to content
ChrogeekPublic

About

An LLVM-based compiler frontend for a BASIC programming language dialect.

Resources

Contributing

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

The LBC Project

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.

Prerequisities

  • 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.

Building

Execute following commands in a Command Prompt or PowerShell window under the project root directory:

generate.bat
build.bat

And 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.bas

Which is equivalent to:

cd bin
Release\lbc.exe <test.bas
cd ..

Testing

Execute test.bat under the test\ directory after building the compiler to perform a test.

License

GNU Affero General Public License v3.0.

About

An LLVM-based compiler frontend for a BASIC programming language dialect.

Resources

Contributing

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages