Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Editing the code stub given to us.

2 views
Skip to first unread message

Ofotsu MacCarthy

unread,
Jan 31, 2012, 8:05:11 PM1/31/12
to
Hello,

I was wondering if the assignment is designed to be completed without
editing any of the code that we started with ie. the scanner, token
structure and FSM. I was failing two release tests and after making a
slight addition to the way Tokens are handled, I passed one test. I'm
still failing the 2nd one and there's one other case I can think of that
passes using cs241.binasm but not with mine. It will require me to
probably heavily modify the scanner though and I would rather not touch
that. I would just like to know if I have to make modifications to pass
every test or if it's possible to do so without so I forget that case
and continue looking for what I may be missing.

Thank you

Carl Cabusas

unread,
Feb 1, 2012, 12:18:46 AM2/1/12
to
You don't have to modify the scanner AT AL, you can, speaking in point
of view from scheme. However, I think it is the same case with c++ and
java.
For any error cases that the scanner doesn't detect, you have to handle
that through your own functions as specified by the mips assembly
language give to us on the course website.
http://www.student.cs.uwaterloo.ca/~cs241/mips/mipsasm.html


0 new messages