This is a suite of utility functions to generate assembly (.asm) files from J language files (.j) J is a stack-oriented language loosely inspired by Forth. The J language used for this project is not the same as the J Software language.
Makefile: file defining themakecommand optionsjc.c: main file. Reads in .j files as command line arguments and return .asm files.parser.c: Set of utility functions for outputting Assembly code from J tokensparser.h: Header file for parser.ctoken.c: Set of utility functions to parse .j files into tokenstoken.h: Header file for token.cutils.c: Meant for utility functions used by more than one fileutils.h: Header file for utils.c
make jc: Make the entire projectmake token: Make files related to J tokens parsing./jc foo.j bar.jproducesfoo.asm
The .c files are held in a private repo per course plagiarism prevention policy. Please reach out to me if you're non-Penn affiliated and would like to take a look.