Constructor and Description |
---|
DefaultGrammar(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addReservedWord(java.lang.String id) |
void |
addStatement(Statement statement) |
Statement |
createStatement(java.lang.String name) |
Statement |
getApplicableStatement(Statement.StatementContext context) |
java.lang.String |
getName() |
java.util.List<Statement> |
getStatements() |
boolean |
isReservedWord(java.lang.String id) |
java.util.Iterator<Statement> |
iterator() |
java.lang.String |
toString() |
public java.util.List<Statement> getStatements()
getStatements
in interface Grammar
public Statement createStatement(java.lang.String name)
createStatement
in interface Grammar
public void addStatement(Statement statement)
addStatement
in interface Grammar
public Statement getApplicableStatement(Statement.StatementContext context)
getApplicableStatement
in interface Grammar
public java.lang.String toString()
toString
in class java.lang.Object
public void addReservedWord(java.lang.String id)
addReservedWord
in interface Grammar
public boolean isReservedWord(java.lang.String id)
isReservedWord
in interface Grammar