avrora.syntax.gas
Class GASProgramReader

java.lang.Object
  extended byavrora.Main.ProgramReader
      extended byavrora.syntax.gas.GASProgramReader

public class GASProgramReader
extends Main.ProgramReader

The GASProgramReader is an implementation of the ProgramReader that reads a source program in the GAS-style syntax and builds a program from it.


Constructor Summary
GASProgramReader()
           
 
Method Summary
 java.lang.String getHelp()
           
 Program read(java.lang.String[] args)
          The read() method accepts a list of filenames as strings, loads them, resolves symbols, and produces a simplified program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GASProgramReader

public GASProgramReader()
Method Detail

read

public Program read(java.lang.String[] args)
             throws java.lang.Exception
The read() method accepts a list of filenames as strings, loads them, resolves symbols, and produces a simplified program.

Specified by:
read in class Main.ProgramReader
Parameters:
args - the string names of the files to load
Returns:
a program built from the specified source files
Throws:
ParseException - if a parse error is encountered
java.io.IOException - if there is a problem reading from one of the files
java.lang.Exception

getHelp

public java.lang.String getHelp()
Specified by:
getHelp in class Main.ProgramReader