/gospl

SPL compiler written in Go

Primary LanguageGo

gospl - SPL compiler written in Go

Introduction

gospl is a compiler for SPL (Simple Programming Language) written in Go. It is my second attempt at writing a compiler (kompilator being the first).

Credits

  • Some of the design is heavily borrowed from the Go scanner and parser.
  • The definition of SPL has been taken from the Compiler Construction course of Radboud University Nijmegen, The Netherlands.
  • Tests 0 to 23 were borrowed from Jille/splparser.
  • Algorithm for operator precedence from this blog post.