public class PhoenixParser extends Parser
cfgInstance, dictionary, numRules, parseTree, ruleSet
Constructor and Description |
---|
PhoenixParser(File inFile)
Creates a new instance of PhoenixParser
|
PhoenixParser(InputStream inStream)
Creates a new instance of PhoenixParser
|
PhoenixParser(String fileName)
Creates a new instance of PhoenixParser
|
Modifier and Type | Method and Description |
---|---|
protected void |
generateRuleSet()
Generates the array of production rules that define the CFG
|
static void |
main(String[] args)
Main method for testing of parser
|
protected ParseNode |
parse()
Override parse() method of the mother class to deal with empty HOVER_TOKENS
|
applyRules, getToken, run
public PhoenixParser(String fileName) throws FileNotFoundException
fileName
- path to the file to be parsedFileNotFoundException
public PhoenixParser(File inFile) throws FileNotFoundException
inFile
- File object from which context free grammar instance is to be readFileNotFoundException
public PhoenixParser(InputStream inStream)
inStream
- InputStream from which context free grammar instance is to be readprotected void generateRuleSet()
generateRuleSet
in class Parser
protected ParseNode parse()
public static void main(String[] args)
args
- the command line arguments