Without Parenthesis

This commit is contained in:
jeffcheasey88 2023-07-09 17:48:50 +02:00
parent 70b389140b
commit 8931ef971a
2 changed files with 3 additions and 2 deletions

View file

@ -134,6 +134,7 @@ public class JavaParser extends Parser<JavaFile> {
// tokenizer.getTokens().addAll(build("(","ab","=","(","cd","&","(","ay","/","34",")",")",")"));
// tokenizer.getTokens().addAll(build("(","ab","=","cd",")"));
// tokenizer.getTokens().addAll(build("(","ab",")"));
// tokenizer.getTokens().addAll(build("ab","=","cd","/","ef"));
value_q0.seed(tokenizer, null);
System.out.println("----");

View file

@ -36,8 +36,8 @@ public class Value extends JavaElement{
private Token type; //make a concat later
public BiValue(Value left, Value right, Token operation){
this.left = left;
this.right = right;
this.left = left.get() == null ? left : left.get();
this.right = right.get() == null ? right : right.get();
this.type = operation;
System.out.println(this);