Skip to content
/ Glados Public

A Compiler and a virtual machine for a custom language written in haskell

Notifications You must be signed in to change notification settings

rclovis/Glados

Repository files navigation

Glados

The Glados project aims at developing a language from scratch with a compiler and a vm for it. The language is a simple imperative language, with a C-like syntax. The compiler and the vm are written in haskell.

Prerequisites

Before you begin, ensure you have these packages installed in your machine:

  • Haskell
  • Stack

Getting Started

Coding In Funk

To learn how to code in Funk, you can read the Funk Language Documentation.

Running Funk

To run your code written in Funk, you must first compile it to bytecode. You can do so by running the following command:

stack run compile-exe [path to your files]

This will generate a out.bin file in the same directory as your source files. To run the bytecode, you can use the following command:

stack run vm-exe [path to your bytecode] [arguments]

Creators