-
-
Save flaviut/10513489 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
macro void(name: expr): stmt {.immediate.} = | |
echo reprTree name | |
#CurlyExpr | |
# Call | |
# Ident !"abc" | |
# Command | |
# Ident !"int" | |
# Ident !"a" | |
# Command | |
# Ident !"string" | |
# Ident !"b" | |
# Command | |
# Ident !"echo" | |
# StrLit test | |
void abc(int a, string b){ | |
echo "test" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment