0

Okay just so you all are aware before reading this, yes this is a homework assignment. No I have no code for it yet and no I don't want you all to solve it for me.

Now the reason I'm asking for this kind of help is because I'm in a class and this weeks assignment assumes we've (the students) have already worked on compiler and interpreter design prior to this, which I haven't yet. So with that knowledge there is a chance I may need to drop the class because of this (which may be the best idea, but I'd like to avoid it, especially since I'm already half way through the class).

So anyway here is the assignment:

"Convert script language to a series of commands.

Script code:

begin
      move(left, speed_up,2) -- turn left, go faster for 2 notches
      turnon(vector) -- display vector lines
     run(3) -- let game run for 3 seconds

end

There are more function but that's irrelevant for my question.

How would I turn this script into commands that VS C++ can understand??

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Ancient Dragon
1

we've (the students) have already worked on compiler and interpreter design prior to this, which I haven't yet. So with that knowledge there is a chance I may need to drop the class because of this

I'm surprised your university even let you register for that class without the prerequisits.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.