From cb2683144ea7a41deaad0132119b6e3cbc11a777 Mon Sep 17 00:00:00 2001 From: asus Date: Wed, 24 Jan 2024 00:18:16 +0100 Subject: [PATCH] wip grace not quite yet --- 2_Grace/Grace.c | 50 ++----------------------------------------------- 1 file changed, 2 insertions(+), 48 deletions(-) diff --git a/2_Grace/Grace.c b/2_Grace/Grace.c index 3e9e6b9..7c8ac31 100644 --- a/2_Grace/Grace.c +++ b/2_Grace/Grace.c @@ -1,53 +1,7 @@ -//#include -//#define PRINT "test" -//#define FT(x) int main(){\ -// char *to_print = "hello "x" hello";\ -// printf("%s", to_print);\ -// return 0;\ -//} -//#define SFT(x) FT(x) -// -//FT(PRINT) - - -//#include -//#define PRINT to_print, 10 -//#define FT(...) int main(){\ -// char *to_print = "hello %c"#__VA_ARGS__" hello";\ -// printf(PRINT);\ -// return 0;\ -//} -//#define FFT(...) FT(__VA_ARGS__) -// -//FFT(PRINT) - - -//#include -//#define PRINT to_print, 10 -//#define FT(x) int main(){\ -// char *to_print = "hello %c"#x" hello";\ -// printf(x);\ -// return 0;\ -//} -// -//FT(PRINT) - - -//#include -//#define PRINT quine, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10 -//#define FT(x) int main(){\ -// char *quine = "#include %c#define "#x" %c#define FT int main(){%c char *quine = %c%s%c;%c printf(PRINT);%c return 0;%c}%cFT%c";\ -// printf(x);\ -// return 0;\ -//} -// -//FT(PRINT) - - #include -#define PRINT quine, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10 +#define PRINT quine, 10, 10, 92, 10, 34, quine, 34, 92, 10, 92, 10, 92, 10, 10, 10, 10, 10 #define FT(...) int main(){\ - char *quine = "#include %c#define "#__VA_ARGS__" %c#define FT int main(){%c char *quine = %c%s%c;%c printf(PRINT);%c return 0;%c}%cFT%c";\ + char *quine = "#include %c#define PRINT "#__VA_ARGS__" %c#define FT(...) int main(){%c%c char *quine = %c%s%c;%c%c printf(PRINT);%c%c return 0;%c%c}%c#define FFT(...) FT(__VA_ARGS__)%c%cFFT(PRINT)%c";\ printf(PRINT);\ return 0;\ }