Catscript Compiler

A compiler that translates Catscript into Java bytecode.

Project Overview

Challenge: Make a compiler that takes Catscript and converts it to Java bytecode. ​

Tools: Java ​

Team: Joshua Fried (Solo Project) and Carson Gross (Teacher)

How it works

The compiler was written in Java and has four different parts: tokenization, parsing, evaluation, and bytecode. Tokenization breaks input code into tokens that are utilized by the parser. The parser creates a parse tree and ensures the tokens follow the correct syntax. The evaluation phase makes sure the input code is correct for the language itself. The final phase converts the input code into Java bytecode to be used by the Java Virtual Machine.