mirror of
https://github.com/DMaroo/GhidRust.git
synced 2025-12-25 11:40:23 +01:00
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:
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user