|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.SFECompiler
public class SFECompiler
The SFECompiler class takes an input stream and checks if it is compatible with the predefined language. It uses the class Tokenizer that gives tokens and their values.
Constructor Summary | |
---|---|
SFECompiler(java.io.FileReader file)
Creates a tokenizer that parses the given stream. |
Method Summary | |
---|---|
static void |
compile(java.lang.String fileName,
boolean opt)
A test program |
Program |
compileProgram()
Compiles the all program: program <program-name> { <type declarations> <function declarations> } |
static void |
main(java.lang.String[] args)
A test program |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SFECompiler(java.io.FileReader file)
file
- a FileReader object providing the input stream.Method Detail |
---|
public Program compileProgram() throws java.text.ParseException, java.io.IOException
java.io.IOException
- - if an I/O error occurs.
java.text.ParseException
- - if a parsing error occurs.public static void compile(java.lang.String fileName, boolean opt) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |