public class ESParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ESParser.DefaultEventFactory |
class |
ESParser.Exception
utilities
|
Modifier and Type | Field and Description |
---|---|
static String |
K_ANY |
static String |
K_REPEAT
our keywords
|
static String |
K_SECTION |
Constructor and Description |
---|
ESParser(String fname) |
ESParser(String fname,
EventFactory eFact) |
ESParser(String name,
Reader r) |
ESParser(String name,
Reader r,
EventFactory eFact) |
Modifier and Type | Method and Description |
---|---|
protected void |
alternative(ScriptElementContainer parent) |
protected void |
event(ScriptElementContainer parent) |
static void |
main(String[] args) |
Script |
parse()
grammar ***********************
script ::= {section | sequence}.
|
protected void |
repetition(ScriptElementContainer parent) |
protected void |
section(ScriptElementContainer parent) |
protected void |
sequence(ScriptElementContainer parent) |
static void |
tokenize(String fname)
test functions
|
public static final String K_REPEAT
public static final String K_ANY
public static final String K_SECTION
public ESParser(String fname, EventFactory eFact) throws ESParser.Exception
ESParser.Exception
public ESParser(String fname) throws ESParser.Exception
ESParser.Exception
public ESParser(String name, Reader r) throws ESParser.Exception
ESParser.Exception
public ESParser(String name, Reader r, EventFactory eFact) throws ESParser.Exception
ESParser.Exception
public Script parse() throws ESParser.Exception
ESParser.Exception
protected void section(ScriptElementContainer parent) throws ESParser.Exception
ESParser.Exception
protected void sequence(ScriptElementContainer parent) throws ESParser.Exception
ESParser.Exception
protected void repetition(ScriptElementContainer parent) throws ESParser.Exception
ESParser.Exception
protected void alternative(ScriptElementContainer parent) throws ESParser.Exception
ESParser.Exception
protected void event(ScriptElementContainer parent) throws ESParser.Exception
ESParser.Exception
public static void tokenize(String fname)
public static void main(String[] args)