Skip to content

Instantly share code, notes, and snippets.

@kevincox
Created November 29, 2013 17:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#include <stdio.h>
#define def int
#define beer main(int i){char b[1024];
#define print(v) print(int v){
#define end ;}
#define if(x) fputs(b,stdout); fgets(b,1024,f); if(x){
#define else ;} else{
#define puts
#define print
#define open(fn) FILE *f = fopen(fn,"r");
#define while(x) fgets(b,1024,f); while(!feof(f)){
def beer
# define beer
open("test.c")
i=100;
while ( i >= 0 )
if ( i > 0 )
print "#{i} bottle#{i==1&&''||'s'} of beer on the wall, "
puts "#{i} bottle#{i==1&&''||'s'} of beer."
print "Take one down and pass it around, "
puts "#{i-1} bottle#{i==2&&''||'s'} of beer on the wall."
puts
else
puts "No more bottles of beer on the wall, no more bottles of beer."
puts "Go to the store and buy some more, 99 bottles of beer on the wall."
end
i -= 1
end
return 0
end
beer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment