mirror of
https://github.com/DMaroo/GhidRust.git
synced 2025-10-06 04:53:57 +02: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,23 @@
|
||||
package ghidrust.decompiler.parser.c.gen;
|
||||
|
||||
/* Generated By:JJTree: Do not edit this line. ASTDeclarationSpecifiers.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 ASTDeclarationSpecifiers extends SimpleNode {
|
||||
public ASTDeclarationSpecifiers(int id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
public ASTDeclarationSpecifiers(CParser p, int id) {
|
||||
super(p, id);
|
||||
}
|
||||
|
||||
|
||||
/** Accept the visitor. **/
|
||||
public Object jjtAccept(CParserVisitor visitor, Object data) {
|
||||
|
||||
return
|
||||
visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
/* JavaCC - OriginalChecksum=2696c846786a5a2eade82856402afbaa (do not edit this line) */
|
Reference in New Issue
Block a user