automated C# glue FFI glue code

This commit is contained in:
2025-11-28 03:51:05 -07:00
parent 6b69cc1459
commit c97c5763ae
9 changed files with 130 additions and 54 deletions

View File

@@ -68,7 +68,7 @@ struct CompilationResult {
}
pub struct Compiler<'a, W: std::io::Write> {
parser: ASTParser,
parser: ASTParser<'a>,
function_locations: HashMap<String, usize>,
function_metadata: HashMap<String, Vec<String>>,
devices: HashMap<String, String>,
@@ -83,7 +83,7 @@ pub struct Compiler<'a, W: std::io::Write> {
impl<'a, W: std::io::Write> Compiler<'a, W> {
pub fn new(
parser: ASTParser,
parser: ASTParser<'a>,
writer: &'a mut BufWriter<W>,
config: Option<CompilerConfig>,
) -> Self {