Skip to content

Benjamin-Davies/pascal

Repository files navigation

A basic Pascal compiler and interpreter written in C. Only a small subset of the Pascal language is supported. Functions and integer stack variables are included.

The compiler only supports linux-aarch64-* but the interpreter should work on any platform.

Usage

Compiler

# Requires linux-aarch64-*
make examples
./examples/hello_world

Interpreter

# Should work on any platform
make interpreter
./interpreter examples/hello_world.pas

About

A basic Pascal compiler and interpreter written in C.

Resources

Stars

Watchers

Forks