Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Renraku.Compiler
- import Boo.Lang.Compiler.Ast
- import Boo.Lang.PatternMatching
- macro intrinsic(orig, func as MethodInvocationExpression, block as Expression*):
- params = ParameterDeclarationCollection()
- for param in func.Arguments:
- params.Add(ParameterDeclaration(
- Name: param.ToString(),
- Type: SimpleTypeReference('duck')
- ))
- yield [|
- static class $(func.Target):
- def constructor():
- pass
- def Handle($params):
- pass
- |]
Add Comment
Please, Sign In to add comment