public class DFA
extends java.lang.Object
Constructor and Description |
---|
DFA() |
Modifier and Type | Method and Description |
---|---|
void |
loadFromFile(java.lang.String fileName)
Load this DFA from a file containing a table of the Lexical Specifications
for the language to be recognized.
|
static void |
main(java.lang.String[] args)
For testing purposes only.
|
void |
printYourself()
Generate a proof listing of the table.
|
public static void main(java.lang.String[] args) throws KSParsingErrorException
KSParsingErrorException
public void loadFromFile(java.lang.String fileName) throws KSParsingErrorException
fileName
- a String containing the pathname to the Lex Spec file.KSParsingErrorException
- if the DFA Table doesn't confrom to conventionspublic void printYourself()