Cleanups
This commit is contained in:
parent
82befa76fc
commit
ee10dddb81
|
|
@ -1,11 +1,12 @@
|
|||
command = action [ query ] [ return ]
|
||||
action = ("/" word)+
|
||||
query = "where" expr
|
||||
expr = expr "and" expr | expr "or" expr | "not" expr | hasExpr | eqExpr | lessExpr | moreExpr
|
||||
expr = expr "and" expr | expr "or" expr | "not" expr | hasExpr | eqExpr | lessExpr | moreExpr | notExpr
|
||||
hasExpr = name
|
||||
eqExpr = name "=" value
|
||||
lessExpr = name "<" value
|
||||
moreExpr = name ">" value
|
||||
notExpr = name "!=" value
|
||||
return = "return" (name)+
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,5 +24,5 @@ abstract class Response {
|
|||
this.tag = tag;
|
||||
}
|
||||
|
||||
private String tag;
|
||||
private String tag;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,4 @@ public class ScanException extends ParseException {
|
|||
super(msg, err);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue