aboutsummaryrefslogtreecommitdiffhomepage
path: root/2-the-false-awakens/entry.rb
blob: 199d42a6bc07b0fd8cb204b77520d874bf8037aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# A long time ago in a galaxy far,
# far away....







eval(%w{def'false(p,s=[],v={});c=0;while(c<p.size);if(       !(i=p[c]));false;e          lsif"$"==i;s.        push             (s.l
ast);elsif"%"==i;s.pop;elsif(28.chr)==i;s.push(s.pop,s.p     op);elsif"@"==i;s[        -3],s[-2],s[-1]=s      [-2]           ,s[-
                  1],s            [-3]               ;els           if"+             "==i            ;s.p     ush(         s.po
                  p+s.            pop)                ;el           sif"            -"==              i;s.    push       (-s.
                  pop+            s.po                p);           elsi            f"*"              ==i;    s.pu     sh(s
                  .pop            *s.p               op);           elsi            f"/"                      ==i;   s.pu
                  sh(s            .pop.then{s.pop/_1});e            lsif            "_"=                      =i;s.push
                  (-s.            pop);elsif"&"==i;s.pu             sh(s            .pop                      &s.pop);el
                  sif"            |"==   i;s.                       push            (s.p                      op|s    .pop)
                  ;els            if"~     "==i                     ;s.p            ush(              ~s.p    op);       elsi
                  f">"            ==i;       s.pu                   sh((            s.po              p<s.    pop)         ?~0:
                  0);e            lsif         "="=                 =i;s             .pus            h((s     .pop           ==s.
                  pop)            ?~0:           0);elsif"   !"==i;self.false(s        .pop,s,v);elsif"?      "==i             ;s.pop.then{s.pop!=0&
                  &sel            f.fa             lse(_1,   s,v)};elsif":"==i;          v[s.pop]=s.po        p;el               sif";"==i;s.push(v[


s.pop]);elsif","==i;print(s.pop.chr)               ;elsif"."==i;p       rint(s.pop);elsi                f/[0-9]/=~i;s.push(i.to_i);elsif/[a-z]/=~i;s
.push(i);elsif"["==i;q=c+=(b=1);while(b          !=0);b+={"["=>1,"]     "=>-1}[p[c]]||0;c+=          1;end;s.push(p[q...(c-=1)]);elsif"#"==i;a,b=s.p
                                    op,s        .pop            ;loo                    p{;s        elf.
                                    fals       e(b                ,s,                   v);s        .pop
                                   !=0&        &br                eak                  ;sel          f.fa
                                 lse(          a,s                ,v)                ;};e              nd;c
                              +=1;e            nd;                end             ;clas                  s'Str
                           ing;d               ef&                (ot          her);                        (self
                         [1..                  ]+o                the        r[1.                              .]).
                       char                    s.m                ap{      (_1.                                  upca
                      se==                     _1)                ??1     :?0}                                    .joi
                      n.to                      _i(2            ).ch      r;en                                    d;de
                       f|(other);(self||""       )+(other||"");end;        def'method_missing(_);self;end;end;def'Obj
                          ect.const_missin         g(n);const_set             (n,n.to_s);end}.join.gsub("'"," "))




     EPISODE_VII

  THE_FALSE_AWAKENS




self.false((
  May.the.false.be.with.you;
  TrUE&FaLsE|TrUe&FaLse|TrUe&FAlSe|TrUE&FalSE|TrUe&FAlSe|TrUe&FaLse|TrUe&FaLse|TrUe&FaLse|TrUe&FaLse|TrUE&FAlsE|TrUe&FAlSE|TrUe&FALse|
  TrUE&FaLSE|TrUe&FAlSE|TrUe&FALse|TrUE&FalSe|TrUe&FALsE|TrUe&FALse|TrUE&FAlse|TrUe&FALsE|TrUe&FALse|TrUe&FALse|TrUE&FaLse|TrUE&FAlse|
  TrUe&FAlSe|TrUe&FALse|TrUE&FaLsE|TrUE&FalSe|TrUE&False|TrUE&FalSe|TrUe&FALSe|TrUe&FALSe|TrUe&FALSe|TrUe&FALSe|TrUE&FalSe|TrUE&FaLsE|
  TrUe&FAlSe|TrUe&FALse|false
))