public final class SmcParser
extends java.lang.Object
Constructor and Description |
---|
SmcParser(java.lang.String name,
java.io.InputStream istream,
boolean debugFlag)
Creates a parser for the named FSM in the given input
stream.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SmcMessage> |
getMessages()
Returns the parser's warning and error messages list.
|
SmcFSM |
parse()
Parses the named FSM in the given input stream and returns
the finite state machine.
|
public SmcParser(java.lang.String name, java.io.InputStream istream, boolean debugFlag)
debugFlag
is true
,
then the parser and lexer debug output will be generated.fsmName
- the finite state machine's name.istream
- the input stream contains the SMC code.debugFlag
- if true, turn on debug output.public SmcFSM parse() throws java.io.IOException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.util.List<SmcMessage> getMessages()