public class Parser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Parser.Array
[ a b ...]
[ k1=v1 k2=v2 ...]
|
static class |
Parser.Closure
{ program }
|
static class |
Parser.Executable |
static class |
Parser.Operator |
static class |
Parser.Pipeline
token1 | token2 | ...
|
static class |
Parser.Program
pipe1 ; pipe2 ; ...
|
static class |
Parser.Sequence
( program )
|
static class |
Parser.Statement |
Modifier and Type | Field and Description |
---|---|
protected LinkedList<String> |
stack |
protected List<Parser.Statement> |
statements |
protected List<Token> |
tokens |
protected Tokenizer |
tz |
Constructor and Description |
---|
Parser(CharSequence line) |
Modifier and Type | Method and Description |
---|---|
Parser.Array |
array() |
Parser.Closure |
closure() |
protected Token |
end(String str) |
protected Token |
expect(String str) |
protected void |
expectNotNull() |
protected Token |
next() |
Parser.Program |
program() |
protected void |
push(Token t) |
Parser.Sequence |
sequence() |
protected Token |
start(String str,
String missing) |
Parser.Statement |
statement() |
List<Parser.Statement> |
statements() |
List<Token> |
tokens() |
protected Token |
whole(List<? extends Token> tokens,
int index) |
protected Token |
whole(Token b,
Token e) |
protected final Tokenizer tz
protected final LinkedList<String> stack
protected final List<Parser.Statement> statements
public Parser(CharSequence line)
public List<Parser.Statement> statements()
public Parser.Program program()
protected void push(Token t)
protected Token next()
public Parser.Sequence sequence()
public Parser.Closure closure()
public Parser.Statement statement()
public Parser.Array array()
protected void expectNotNull()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.