avrora.syntax.gas
Class GASProgramReader

java.lang.Object
  extended byavrora.util.help.HelpCategory
      extended byavrora.core.ProgramReader
          extended byavrora.syntax.gas.GASProgramReader
All Implemented Interfaces:
HelpItem

public class GASProgramReader
extends 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.


Field Summary
 
Fields inherited from class avrora.core.ProgramReader
INDIRECT_EDGES, options
 
Fields inherited from class avrora.util.help.HelpCategory
COMPARATOR, help, name
 
Constructor Summary
GASProgramReader()
           
 
Method Summary
 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 avrora.core.ProgramReader
addIndirectEdges
 
Methods inherited from class avrora.util.help.HelpCategory
addCommandExample, addListSection, addOptionSection, addSection, addSubcategorySection, getHelp, getName, printHelp, setName
 
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 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