tobast

Untitled

Nov 7th, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.83 KB | None | 0 0
  1. /********************************************************************
  2.  *   This C program was generated by spl2c, the Shakespeare to C    *
  3.  *          converter by Jon �slund and Karl Hasselstr�m.           *
  4.  ********************************************************************/
  5.  
  6. /* libspl definitions and function prototypes */
  7. #include <spl.h>
  8.  
  9. int main(void)
  10. {
  11.   /******************************************************************
  12.    * THE INFAMOUS HELLO WORLD PROGRAM                               *
  13.    ******************************************************************/
  14.  
  15.   CHARACTER *romeo;                       /* a young man with a remarkable patience */
  16.   CHARACTER *juliet;                      /* a likewise young woman of remarkable grace */
  17.   CHARACTER *ophelia;                     /* a remarkable woman much in dispute with Hamlet */
  18.   CHARACTER *hamlet;                      /* the flatterer of Andersen Insulting A / S */
  19.  
  20.   int comp1, comp2;
  21.  
  22.   global_initialize();
  23.  
  24.   romeo = initialize_character("Romeo");
  25.   juliet = initialize_character("Juliet");
  26.   ophelia = initialize_character("Ophelia");
  27.   hamlet = initialize_character("Hamlet");
  28.  
  29.   act_i:                                  /* Hamlet ' s insults and flattery */
  30.  
  31.   act_i_scene_i:                          /* The insulting of Romeo */
  32.  
  33.   enter_scene(13, hamlet);
  34.   enter_scene(13, romeo);
  35.  
  36.   activate_character(30, hamlet);
  37.   assign(16, second_person, 2*2*2*2*2*2*(-1));
  38.   assign(18, second_person, int_sub(17, 2*2*2*1, value_of(18, second_person)));
  39.   char_output(18, second_person);
  40.   assign(22, second_person, int_add(20, 2*2*2*2*2*2*2*(-1), 2*2*2*2*2*1));
  41.   assign(23, second_person, int_sub(22, int_add(22, 2*2*1, 1), value_of(23, second_person)));
  42.   char_output(23, second_person);
  43.   assign(26, second_person, int_add(25, value_of(25, second_person), int_sub(26, 2*2*2*1, 1)));
  44.   char_output(26, second_person);
  45.   char_output(28, second_person);
  46.  
  47.   exit_scene(30, romeo);
  48.  
  49.   act_i_scene_ii:                         /* The praising of Juliet */
  50.  
  51.   enter_scene(34, juliet);
  52.  
  53.   activate_character(40, hamlet);
  54.   assign(38, second_person, int_add(37, int_add(37, romeo->value, 1), 2*1));
  55.   char_output(38, second_person);
  56.  
  57.   exit_scene(40, juliet);
  58.  
  59.   act_i_scene_iii:                        /* The praising of Ophelia */
  60.  
  61.   enter_scene(44, ophelia);
  62.  
  63.   activate_character(54, hamlet);
  64.   assign(48, second_person, int_mul(47, 2*2*1, 2*2*2*1));
  65.   char_output(48, second_person);
  66.   assign(51, second_person, int_mul(50, 2*2*2*1, int_add(51, 1, 2*1)));
  67.   assign(52, second_person, int_sub(52, juliet->value, value_of(52, second_person)));
  68.   char_output(52, second_person);
  69.  
  70.   exit_scene(54, ophelia);
  71.   exit_scene(54, hamlet);
  72.  
  73.   act_ii:                                 /* Behind Hamlet ' s back */
  74.  
  75.   act_ii_scene_i:                         /* Romeo and Juliet ' s conversation */
  76.  
  77.   enter_scene(61, romeo);
  78.   enter_scene(61, juliet);
  79.  
  80.   activate_character(68, romeo);
  81.   char_output(64, second_person);
  82.   assign(65, second_person, int_add(64, value_of(64, second_person), int_sub(65, 2*2*1, 1)));
  83.   char_output(66, second_person);
  84.  
  85.   activate_character(74, juliet);
  86.   char_output(69, second_person);
  87.   assign(69, second_person, hamlet->value);
  88.   assign(72, second_person, int_sub(70, int_square(70, int_sub(70, 2*1, 2*2*(-1))), int_cube(71, 2*2*(-1))));
  89.   char_output(72, second_person);
  90.  
  91.   exit_scene(74, romeo);
  92.  
  93.   act_ii_scene_ii:                        /* Juliet and Ophelia ' s conversation */
  94.  
  95.   enter_scene(78, ophelia);
  96.  
  97.   activate_character(84, juliet);
  98.   assign(82, second_person, int_div(81, romeo->value, int_add(81, 2*2*1, (-1))));
  99.   char_output(82, second_person);
  100.  
  101.   activate_character(89, ophelia);
  102.   assign(86, second_person, int_div(85, romeo->value, int_twice(85, int_sub(86, 1, 2*2*(-1)))));
  103.   char_output(87, second_person);
  104.  
  105.   exit_scene_all(89);
  106.  
  107.   return 0;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment