Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Brian Swetland
Brian Swetland
@swetland@chaos.social  ·  activity timestamp 3 days ago

Teaching the bootstrap transpiler about methods...

#Projects #Compiler

 compiler/main.spl:

   fn Ast:Dump(self) {
           dump_ast_node(1, self);
   }


 out/compiler/compiler.impl.c:

   t$void fn_Ast$Dump(t$Ast *$self) {
       fn_dump_ast_node(0x1, $self);
   }
compiler/main.spl: fn Ast:Dump(self) { dump_ast_node(1, self); } out/compiler/compiler.impl.c: t$void fn_Ast$Dump(t$Ast *$self) { fn_dump_ast_node(0x1, $self); }
compiler/main.spl: fn Ast:Dump(self) { dump_ast_node(1, self); } out/compiler/compiler.impl.c: t$void fn_Ast$Dump(t$Ast *$self) { fn_dump_ast_node(0x1, $self); }
  • Copy link
  • Flag this post
  • Block

Kakapo Social

Kakapo Social: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.22 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct