Advertisement
mihaild

hello world

May 11th, 2011
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.42 KB | None | 0 0
  1. # /* [  <!-- */ include  <stdio.h> /*   \
  2.   #{\
  3. `""""true \\#{"\n#"};           \
  4.   \
  5. if [ -n "$ZSH_VERSION" ]; then           \
  6.   \
  7.   echo exec  echo I\'m a zsh script.; \
  8.   \
  9. elif [ -n "$BASH_VERSION" ]; then        \
  10.   \
  11.   echo exec  echo I\'m a bash script.; \
  12. else  \
  13.   echo exec  echo  I\'m  a sh  script.;    \
  14. fi`;  #\
  15. BEGIN{print"I'm a ", 0 ? "Ruby"  :"Perl",  " program.\n";  exit; }
  16.   #\
  17. %q~            
  18.  
  19. set dummy =0; puts [list "I'm"  "a"  "tcl"  "script."]; exit  
  20.  
  21. all: ; @echo "I'm a Makefile."          \
  22.   #*/
  23. /*: */ enum {a, b};            \
  24.   \
  25. static int c99(void) {        
  26.  
  27. #ifndef __cplusplus /* bah */        
  28.  
  29. unused1: if ((enum {b, a})0)          \
  30.   (void)0;
  31. #endif          
  32.  
  33. unused2:  return a;     \
  34. }  \
  35. static int trigraphs(void) {         \
  36.   \
  37.   return sizeof  "??!"  ==  2;    \
  38. }  \
  39. char X;               \
  40.   \
  41. int main(void) {             \
  42.   \
  43.   struct X  {        \
  44.   \
  45.      char  a[2];    \
  46.   };\
  47.   if (sizeof(X)  !=  1) {       \
  48.   \
  49. printf("I'm a C++ program (trigraphs %sabled).\n",         \
  50.   \
  51.    trigraphs()  ? "en"  : "dis");\
  52.   \
  53. }else if (1//**/2
  54.  
  55.  
  56. )unused3 : { ; \
  57.     printf("I'm a C program (C%s, trigraphs %sabled).\n", \
  58.         c99() ? "89 with // comments" : "99", \
  59.         trigraphs() ? "en" : "dis"); \
  60.   } else { \
  61.     printf("I'm a C program (C89, trigraphs %sabled).\n", \
  62.         trigraphs() ? "en" : "dis"); \
  63.   } \
  64.   return 0; \
  65. } /*
  66. # \
  67. > main :: IO () -- -- \
  68. > main = putStr "I'm a Literate Haskell program.\n"
  69. # \
  70. ]>++++++++[<+++++++++>-]<+.>>++++[<++++++++++>-]<-.[-]>++++++++++ \
  71. [<+++++++++++>-]<-.>>++++[<++++++++>-]<.>>++++++++++[<++++++++++> \
  72. -]<- - -.<.>+.->>++++++++++[<+++++++++++>-]<++++.<.>>>++++++++++[ \
  73. <++++++++++>-]<+++++.<<<<+.->>>>- - -.<+++.- - -<++.- ->>>>>+++++ \
  74. +++++[<+++++++++++>-]<- - -.<<<<<.<+++.>>>.<<<-.- ->>>>+.<.<.<<.> \
  75. ++++++++++++++.[-]++++++++++"""`
  76. # \
  77. print "I'm a Python program."; """[-][--><html><head>
  78. <!--:--><title>I'm a HTML page</title></head><body>
  79. <!--:--><h1>I'm a <marquee><blink>horrible HTML</blink></marquee> page</h1>
  80. <!--:--><script language="Javascript">
  81. <!--: # \
  82. setTimeout( // \
  83.   function () { // \
  84.    document.body.innerHTML = "<h1>I'm a javascript-generated HTML page</h1>"; // \
  85.   }, 10000); // \
  86. //-->
  87. </script><!--: \
  88. </body></html><!-- } # \
  89. say "I'm a Perl6 program", try { " ($?PUGS_VERSION)" } // "", "."; # """ # */
  90. #define FOO ]-->~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement