plum-umd / the-838e-compiler

Compiler for CMSC 838E
2 stars 0 forks source link

Read char #38

Closed fvoichick closed 3 years ago

fvoichick commented 3 years ago

Work on #7. I had some issues testing, so I'm not sure what else needs to be done.

dvanhorn commented 3 years ago

Sorry I missed the comment about having issues testing. Can you elaborate? You ought to be able to test by adding a file to villain/test/test-programs/villain/ e.g. read-char.rkt:

#lang racket
(read-char)

and then create a file that contains the input with the same name and .in suffix, e.g. read-char.in:

a

then running raco test test/test-progs.rkt from the villain dir, will test this program.

dvanhorn commented 3 years ago

I merged in the main branch and add the pieces need to write a test, which fails. This should've been a pretty simple feature to add and is starting to hold up the rest of the compiler, so if it can't be completed soon, I'm just going to do it.