What the fuck is this ??? but it seems fixed
This commit is contained in:
parent
aa51bb95e2
commit
b64a47faa9
2 changed files with 7 additions and 3 deletions
|
@ -278,6 +278,10 @@ public class JavaParser extends Parser<JavaElement> {
|
|||
StateTree<JavaElement> clazz_container = new StateTree<>();
|
||||
clazz_container.then(variable);
|
||||
clazz_container.then(function);
|
||||
clazz_container.then((v) -> v.validate((t)->{
|
||||
System.out.println(t);
|
||||
return false;
|
||||
}));
|
||||
|
||||
//CLASS
|
||||
StateTree<JavaElement> clazz_ = new StateTree<>();
|
||||
|
|
|
@ -33,14 +33,14 @@ public class BuilderStateTree<E, B> extends StateTree<B>{
|
|||
if(builded != null) builded.build(validator, build);
|
||||
|
||||
for(StateTree<B> state : this.multiple){
|
||||
TokenValidator branch = validator.branch();
|
||||
TokenValidator branch;
|
||||
if(state.checker == null){
|
||||
while((builded = state.internalSeed(branch, build)) != null){
|
||||
while((builded = state.internalSeed((branch = validator.branch()), build)) != null){
|
||||
validator.merge(branch);
|
||||
builded.build(validator, build);
|
||||
}
|
||||
}else{
|
||||
while(state.checker.apply(branch)){
|
||||
while(state.checker.apply((branch = validator.branch()))){
|
||||
builded = state.internalSeed(branch, build);
|
||||
if(builded == null) break;
|
||||
validator.merge(branch);
|
||||
|
|
Loading…
Add table
Reference in a new issue