Guest User

Untitled

a guest
Jun 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. namespace Renraku.Compiler
  2.  
  3. import Boo.Lang.Compiler.Ast
  4. import Boo.Lang.PatternMatching
  5.  
  6. macro intrinsic(orig, func as MethodInvocationExpression, block as Expression*):
  7. params = ParameterDeclarationCollection()
  8. for param in func.Arguments:
  9. params.Add(ParameterDeclaration(
  10. Name: param.ToString(),
  11. Type: SimpleTypeReference('duck')
  12. ))
  13.  
  14. yield [|
  15. static class $(func.Target):
  16. def constructor():
  17. pass
  18.  
  19. def Handle($params):
  20. pass
  21. |]
Add Comment
Please, Sign In to add comment