Mandatory 1

For some reason it has become unclear what are the requirements on a solution to Mandatory 1.

The text of the assignment says:

"Make an interpreter for ROBOL in Java.'

The first lecture defined an interpreter, and it is obvious that it does not include a scanner and parser. However, it is no error also to make a scanner and parser, but you have to make an interpreter.

The text of the mandatory also says:

'..., we do not use scanners
and parsers to turn the test programs into a structure that is
suitable for interpretation (e.g. abstract syntax tree). You are
supposed to make Java code that makes the structure that represents each test program.' 

It is up to you how you will do this, but one option is to have this Java code (that makes the structure in terms of an abstract syntax tree) as part of constructors.

Publisert 26. sep. 2013 13:46