This commit is contained in:
Gideon le Grange 2014-10-07 15:38:16 +02:00
parent 82befa76fc
commit ee10dddb81
3 changed files with 3 additions and 4 deletions

View File

@ -1,11 +1,12 @@
command = action [ query ] [ return ] command = action [ query ] [ return ]
action = ("/" word)+ action = ("/" word)+
query = "where" expr 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 hasExpr = name
eqExpr = name "=" value eqExpr = name "=" value
lessExpr = name "<" value lessExpr = name "<" value
moreExpr = name ">" value moreExpr = name ">" value
notExpr = name "!=" value
return = "return" (name)+ return = "return" (name)+

View File

@ -24,5 +24,5 @@ abstract class Response {
this.tag = tag; this.tag = tag;
} }
private String tag; private String tag;
} }

View File

@ -14,6 +14,4 @@ public class ScanException extends ParseException {
super(msg, err); super(msg, err);
} }
} }