Skip to content

A compiler written in C to compile the JACK language

Notifications You must be signed in to change notification settings

eschalnajmi/JACK-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JACK Compiler

This is a compiler for the JACK language written in C as part of the University of Leeds Compiler Design and Construction module.

Description

This code is able to create lexemes of code, parse through the code, generate a symbol table for a directory & generate .vm files.

Getting Started

Executing program

  • Type this in terminal (macOS):
gcc compiler.c parser.c lexer.c symbols.c -o compile
./compile
  • Type this in terminal (linux):
gcc compiler.c compiler.h parser.c paresr.h lexer.c lexer.h symbols.c symbols.h -o compile
./compile

Acknowledgments

This code was written using test script code by Dr. Mohammad Ammar Alsalka which has been removed in the main branch. Parser.h and Lexer.h were also provided by him.

About

A compiler written in C to compile the JACK language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages