mirror of
https://github.com/DMaroo/GhidRust.git
synced 2025-12-25 03:30:23 +01:00
Start using clang tokens for the Rust code generation
This commit is contained in:
10
src/main/java/ghidrust/decompiler/codegen/rust/RustGen.java
Normal file
10
src/main/java/ghidrust/decompiler/codegen/rust/RustGen.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package ghidrust.decompiler.codegen.rust;
|
||||
|
||||
import ghidra.app.decompiler.ClangTokenGroup;
|
||||
|
||||
public class RustGen {
|
||||
public static String generate(ClangTokenGroup ctg) {
|
||||
RustVisitor rsv = new RustVisitor();
|
||||
return rsv.visit(ctg.Parent());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user