Add decompilation logic for more constructs

* Function calls decompiled correctly
    * Add boolean type and boolean constants in the grammar
    * Allow angled braces in identifier names
    * Overload the `transpile` to also allow input streams
    * Update the generate script accordingly
This commit is contained in:
Dhruv Maroo
2023-04-23 17:08:31 +05:30
parent 6debceb8b5
commit 425c633efe
12 changed files with 2087 additions and 1719 deletions

View File

@@ -4,8 +4,8 @@ package ghidrust.decompiler.parser.c.gen;
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
public
class ASTGhostStringToken extends SimpleNode {
String str_value;
String str_val;
public ASTGhostStringToken(int id) {
super(id);
}
@@ -22,12 +22,12 @@ class ASTGhostStringToken extends SimpleNode {
visitor.visit(this, data);
}
public void setValue(String s) {
value = s;
public String getValue() {
return str_val;
}
public String getValue() {
return str_value;
public void setValue(String value) {
this.str_val = value;
}
}
/* JavaCC - OriginalChecksum=7d91f560265b12b4f437803bcd66b7ba (do not edit this line) */