sleep.parser
public class Rule extends Object
Field Summary | |
---|---|
protected LinkedList | close |
protected LinkedList | open |
static int | PRESERVE_ENTITY |
static int | PRESERVE_SINGLE |
Constructor Summary | |
---|---|
Rule(String errorDesc1, String errorDesc2, char l, char r) | |
Rule(String errorDesc, char s) | |
Rule() |
Method Summary | |
---|---|
Rule | copyRule() |
char | getLeft() |
char | getRight() |
SyntaxError | getSyntaxError() |
int | getType() |
boolean | isBalanced() |
boolean | isLeft(char n) |
boolean | isMatch(char n) |
boolean | isRight(char n) |
String | toString() |
void | witnessClose(Token token) Used to keep track of closing braces to check balance later on |
void | witnessOpen(Token token) Used to keep track of opening braces to check balance later on |
String | wrap(String value) |