AutoTest -> 67.639
This commit is contained in:
parent
34645fab9b
commit
f2d9c8f5db
1 changed files with 11 additions and 1 deletions
|
@ -349,8 +349,18 @@ public class JavaParser extends Parser<JavaElement> {
|
||||||
.end((a,b) -> a);
|
.end((a,b) -> a);
|
||||||
operation.then((validator) -> validator.validate((token) -> token.getValue().equals("else")))
|
operation.then((validator) -> validator.validate((token) -> token.getValue().equals("else")))
|
||||||
.end((a,b) -> a);
|
.end((a,b) -> a);
|
||||||
operation.then((validator) -> validator.validate((token) -> token.getValue().equals("try")))
|
StateTree<JavaElement> operation_try = operation.then((validator) -> validator.validate((token) -> token.getValue().equals("try")));
|
||||||
|
StateTree<JavaElement> operation_try_base = operation_try.then((validator) -> validator.validate((token) -> token.getValue().equals("{")));
|
||||||
|
operation_try.then((validator) -> validator.validate((token) -> token.getValue().equals("(")))
|
||||||
|
.then(new RedirectStateTree<>(value_container, (global, local) -> global.set(null)))
|
||||||
|
.then((validator) -> validator.validate((token) -> token.getValue().equals(")")))
|
||||||
|
.then(operation_try_base);
|
||||||
|
operation_try_base.end((a,b) -> a)
|
||||||
|
.multiple(function_container)
|
||||||
|
.unique((validator) -> validator.validate((token) -> token.getValue().equals("}")))
|
||||||
.end((a,b) -> a);
|
.end((a,b) -> a);
|
||||||
|
|
||||||
|
|
||||||
operation.then((validator) -> validator.validate((token) -> token.getValue().equals("continue")))
|
operation.then((validator) -> validator.validate((token) -> token.getValue().equals("continue")))
|
||||||
.then((validator) -> validator.validate((token) -> token.getValue().equals(";")))
|
.then((validator) -> validator.validate((token) -> token.getValue().equals(";")))
|
||||||
.end((a,b) -> a);
|
.end((a,b) -> a);
|
||||||
|
|
Loading…
Add table
Reference in a new issue