---
title: ByteBender Language and Compiler
subtitle: Designing and Implementing a programming language for the Sprockell CPU
showOnCv: true
type: University
abstract: Custom programming language with multithreading, synchronization primitives and shared memory, compiled to machine instructions for the Sprockell processor, a simple educational CPU. The compiler covers parsing, type checking and code generation, then runs its output in the accompanying simulator.

content:
  - src: cover
    filetype: .webp

pdfFiles:
  - kind: report
    file: bytebender

quickLinks: []

keywords: []
supervisors: []
grade: 8
course:
  name: Concurrency and Compiler Construction (202200192)
  link: https://utwente.osiris-student.nl/onderwijscatalogus/extern/cursus?cursuscode=202200192&collegejaar=2023
keyFeatures:
  - "Language with threads, locks and shared memory."
  - "Frontend: parsing, type checking and symbol tables."
  - "Backend: code generation for the Sprockell processor."
  - "Generated code runs on the Sprockell simulator."
tags:
  - Compiler
  - Tooling
  - Haskell
  - Java
---

ByteBender is a programming language and compiler I built as a course project. It compiles to machine instructions for the <a href="https://github.com/martijnbastiaan/sprockell" target='_blank'>Sprockell processor</a>, a simple Haskell-based CPU used for teaching, and the generated code runs in the accompanying simulator. The compiler does parsing, type checking and code generation, and the language itself supports threads, locks and shared memory.

