Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 793 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 793 Bytes

Very Simple Langauge Compiler

logo

Compiles VSL code (Very Simple Language) into runnable x86_64 assembly code.

  • LL parser

Dependencies

To build, you will need

  • CMake
  • flex v. 2.6
  • bison v. 3.5
  • GNU make or Ninja

Building

Creating a cmake build inside a new folder build/, with the Ninja generator. You only need to do this once.

cmake -B build -GNinja

Compiling the project

cmake --build build

Running

The final binary can be found in build/vslc. See --help for help. Input is passed to stdin, output is printed to stdout.

Example usage:

build/vslc -s < vsl_programs/ps2-parser/variables.vsl