mirror of
https://github.com/DMaroo/GhidRust.git
synced 2025-12-25 11:40:23 +01:00
Add C to Rust transpiler
* Add grammar for C and transpile it to Rust code * Add `generate.sh` to generate the JavaCC and JJTree files * Update `build.sh`
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package ghidrust.decompiler.parser.c.gen;
|
||||
|
||||
/* Generated By:JJTree: Do not edit this line. ASTGhostStringToken.java Version 7.0 */
|
||||
/* 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;
|
||||
|
||||
public ASTGhostStringToken(int id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
public ASTGhostStringToken(CParser p, int id) {
|
||||
super(p, id);
|
||||
}
|
||||
|
||||
|
||||
/** Accept the visitor. **/
|
||||
public Object jjtAccept(CParserVisitor visitor, Object data) {
|
||||
|
||||
return
|
||||
visitor.visit(this, data);
|
||||
}
|
||||
|
||||
public void setValue(String s) {
|
||||
value = s;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return str_value;
|
||||
}
|
||||
}
|
||||
/* JavaCC - OriginalChecksum=7d91f560265b12b4f437803bcd66b7ba (do not edit this line) */
|
||||
Reference in New Issue
Block a user