public interface Parser
Modifier and Type | Interface and Description |
---|---|
static class |
Parser.ParseContext |
Modifier and Type | Field and Description |
---|---|
static String |
REGEX_COMMAND |
static String |
REGEX_VARIABLE |
Modifier and Type | Method and Description |
---|---|
default String |
getCommand(String line) |
default String |
getVariable(String line) |
default boolean |
isEscapeChar(char ch) |
default ParsedLine |
parse(String line,
int cursor) |
ParsedLine |
parse(String line,
int cursor,
Parser.ParseContext context) |
default boolean |
validCommandName(String name) |
default boolean |
validVariableName(String name) |
static final String REGEX_VARIABLE
static final String REGEX_COMMAND
ParsedLine parse(String line, int cursor, Parser.ParseContext context) throws SyntaxError
SyntaxError
default ParsedLine parse(String line, int cursor) throws SyntaxError
SyntaxError
default boolean isEscapeChar(char ch)
default boolean validCommandName(String name)
default boolean validVariableName(String name)