mattp-613 / VSPL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSPL

This is an assignment I did for one of my classes that worked with compiler syntax

the grammar is as follows: (i could not be bothered to fix github's formatting it into oblivion. if you really care about this assignment and the grammar, inspect element or something ebcasue i dont know how to format text and have no time rn to figure out)

::={<statement_list>} <statement_list> ::=;<statement_list> |; ::=call: <procedure_call> |compute: <procedure_call>::=id() ::=, | ::=id=+ |id=- |id= ::=id|num

the grammar isn't entirely what is represented in the code as I left factored and removed left recursion (specifically from statement_list and parameters)

About


Languages

Language:Java 100.0%