Assignment 2: Parser and Transpiler
Please do not change the names of the functions defined in the Assignment.hs file. Each Part of the assignment has corresponding parseExerciseX and prettyPrintExerciseX that will parse and pretty print the input as per the requirements in that part.
You may (and are highly encouraged) to implement your parsers alongside these pre-defined functions. Running the Code
This will generate the transpiled JS files using the sample input JS files, by running your pretty printing
function for each exercise.
The tests on the page test:
The generated code is valid JS (i.e. it runs without errors, including non-termination error)
The generated code has certain properties of the original code (e.g. immutable variables are still immutable)
The output is “prettified” from the input based on visual, side-by-side inspection