aboutsummaryrefslogtreecommitdiffhomepage
path: root/2-the-false-awakens/entry.rb
diff options
context:
space:
mode:
Diffstat (limited to '2-the-false-awakens/entry.rb')
-rw-r--r--2-the-false-awakens/entry.rb57
1 files changed, 57 insertions, 0 deletions
diff --git a/2-the-false-awakens/entry.rb b/2-the-false-awakens/entry.rb
new file mode 100644
index 0000000..199d42a
--- /dev/null
+++ b/2-the-false-awakens/entry.rb
@@ -0,0 +1,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
+))