Raptor.ProgramParser
Class ProgramParseController

java.lang.Object
  extended by Raptor.ProgramParser.ProgramParseController

public class ProgramParseController
extends java.lang.Object

Controls the parsing of program code.

Created with a String variable as an argument, which is a line of the input program.
parseLine() can then be called to parse this progran line.


Constructor Summary
ProgramParseController(java.lang.String line)
          Constructs a ProgramParseController.
 
Method Summary
 Statements parseCode()
          Carries out the parsing of the program and returns the statements generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramParseController

public ProgramParseController(java.lang.String line)
Constructs a ProgramParseController.

Parameters:
line - String to be parsed
Method Detail

parseCode

public Statements parseCode()
Carries out the parsing of the program and returns the statements generated.

Creates a parser.
Obtains the RESULT value returned by the parser.
Returns the result, caste as a Statements.