Permalink
Browse files

unlicense

  • Loading branch information...
1 parent 38250af commit b1b5302d5ab100feda474ddb4003769e140ce756 @serprex committed Jul 9, 2011
Showing with 339 additions and 328 deletions.
  1. +3 −3 !=.txt
  2. +2 −2 ++.2.txt
  3. +10 −10 ++.txt
  4. +5 −5 +.10.txt
  5. +2 −2 +.2.txt
  6. +2 −2 +1.2.txt
  7. +2 −2 +1.txt
  8. +2 −2 --.2.txt
  9. +10 −10 --.txt
  10. +2 −2 -1.1.txt
  11. +3 −3 -1.2.txt
  12. +3 −3 -1.txt
  13. +3 −3 2loop.1.txt
  14. +3 −3 ==.txt
  15. +62 −61 Rue.py
  16. +24 −0 UNLICENSE
  17. +5 −5 _.txt
  18. +4 −4 acker.1.txt
  19. +2 −2 argw.txt
  20. +8 −8 asdf.txt
  21. +21 −21 bin2hex.txt
  22. +4 −4 bin2une.txt
  23. +3 −3 count.txt
  24. +4 −4 div.1.txt
  25. +3 −3 eq.txt
  26. +5 −5 ewfib.txt
  27. +5 −5 fib.1.txt
  28. +6 −6 fib.txt
  29. +0 −14 fuck.txt
  30. +2 −2 gcd.txt
  31. +3 −3 get.txt
  32. +4 −4 gt.1.txt
  33. +4 −4 gte.1.txt
  34. +20 −20 hex2bin.txt
  35. +3 −3 if.txt
  36. +3 −3 isfactor.txt
  37. +5 −5 ispalindrome.txt
  38. +3 −3 isprime.txt
  39. +4 −4 lcm.txt
  40. +2 −2 len.1.txt
  41. +3 −3 len.2.txt
  42. +3 −3 len.txt
  43. +2 −2 len.x.txt
  44. +3 −3 loop.1.txt
  45. +4 −4 loop.txt
  46. +5 −5 lt.1.txt
  47. +4 −4 lte.1.txt
  48. +3 −3 mod.1.txt
  49. +4 −4 mul.1.txt
  50. +4 −4 mul.2.txt
  51. +7 −7 mul.txt
  52. +3 −3 replaceall.txt
  53. +3 −3 reverse.txt
  54. +2 −2 rmod.1.txt
  55. +4 −4 rol.txt
  56. +4 −4 ror.txt
  57. +2 −2 rsub.1.txt
  58. +2 −2 set.txt
  59. +3 −3 shl.txt
  60. +3 −3 shr.txt
  61. +2 −2 sub.1.txt
  62. +6 −6 sub.txt
  63. +1 −1 typebin.txt
  64. +1 −1 typehex.txt
View
6 !=.txt
@@ -1,4 +1,4 @@
-^(.*);\1$::=0
-.*;.*::=1
-::=
+^(.*);\1$::=0
+.*;.*::=1
+::=
@@
View
@@ -1,3 +1,3 @@
-0\+\+::=1
-1\+\+::=++0
+0\+\+::=1
+1\+\+::=++0
\+\+0::=10
View
20 ++.txt
@@ -1,11 +1,11 @@
-0\+\+::=1
-1\+\+::=2
-2\+\+::=3
-3\+\+::=4
-4\+\+::=5
-5\+\+::=6
-6\+\+::=7
-7\+\+::=8
-8\+\+::=9
-9\+\+::=++0
+0\+\+::=1
+1\+\+::=2
+2\+\+::=3
+3\+\+::=4
+4\+\+::=5
+5\+\+::=6
+6\+\+::=7
+7\+\+::=8
+8\+\+::=9
+9\+\+::=++0
\+\+0::=10
View
@@ -1,6 +1,6 @@
-import ++
-import --
-(\d+) 0::=\1
-(\d+) (\d+)::=\1++ \2--
-::=
+import ++
+import --
+(\d+) 0::=\1
+(\d+) (\d+)::=\1++ \2--
+::=
@@
View
@@ -1,3 +1,3 @@
-(.*);(.*)::=:len.2{:bin2une{\1}:bin2une{\2}}
-::=
+(.*);(.*)::=:len.2{:bin2une{\1}:bin2une{\2}}
+::=
@@
View
@@ -1,3 +1,3 @@
-import ++.2
-::=
+import ++.2
+::=
@@++
View
4 +1.txt
@@ -1,3 +1,3 @@
-import ++
-::=
+import ++
+::=
@@++
View
@@ -1,3 +1,3 @@
-0--::=--1
-[^01]1--::=\1
+0--::=--1
+[^01]1--::=\1
1--::=0
View
20 --.txt
@@ -1,11 +1,11 @@
-0--::=--9
-(\D)1--::=\1
-1--::=0
-2--::=1
-3--::=2
-4--::=3
-5--::=4
-6--::=5
-7--::=6
-8--::=7
+0--::=--9
+(\D)1--::=\1
+1--::=0
+2--::=1
+3--::=2
+4--::=3
+5--::=4
+6--::=5
+7--::=6
+8--::=7
9--::=8
View
@@ -1,3 +1,3 @@
-^;,::=
-::=
+^;,::=
+::=
;@@
View
@@ -1,4 +1,4 @@
-import --.2
-;([01]+)::=\1--
-::=
+import --.2
+;([01]+)::=\1--
+::=
;@@
View
6 -1.txt
@@ -1,4 +1,4 @@
-import --
-!(\d+)::=\1--
-::=
+import --
+!(\d+)::=\1--
+::=
!@@
View
@@ -1,4 +1,4 @@
-^(,*), (.*)::=\1 \2\2
-^ ::=
-::=
+^(,*), (.*)::=\1 \2\2
+^ ::=
+::=
@@
View
6 ==.txt
@@ -1,4 +1,4 @@
-^(.*);\1$::=1
-.*;.*::=0
-::=
+^(.*);\1$::=1
+.*;.*::=0
+::=
@@
View
123 Rue.py 100644 → 100755
@@ -1,61 +1,62 @@
-from re import compile as re
-from sys import argv
-from random import choice,seed;seed();del seed
-from itertools import izip as zip
-k=re(r"^::=.+",8).sub
-G={}
-try:
- input=raw_input
- range=xrange
-except:pass
-def Rue(f,A="",s=0):
- if f in G:f=G[f]
- else:
- c=f
- f=k("",open(f+".txt").read())
- if f.startswith("import "):
- a=f.find("\n",8)
- f=open(f[7:a]+".txt").read()+f[a:]
- a=f.find("\nimport ")+1
- while a:
- b=f.find("\n",a+8)
- f=f[:a]+open(f[a+7:b]+".txt").read()+f[b:]
- a=f.find("\nimport ",a)+1
- f=f.split("\n::=\n")
- G[c]=f
- c=""#::="
- R=[]
- for lf,C in zip(range(len(f)-1,-1,-1),f):
- R+=([re(R[0],16).sub,R[1] if len(R) is 2 else "" if len(R) is 1 else R[1:],len(R) is 1] for R in (R.split("::=") for R in c.split("\n") if R))
- while 1:
- while 1:
- c=C=C.replace("@@",A)
- for p0,p1,p2 in R:
- C=p0(choice(p1) if p2 else p1,C,1)
- if c is not C:break
- else:break
- if D:print(" "*s+C)
- if lf:break
- a=C.find("}")
- if a is -1:break
- while 1:
- b=C.rfind("{",0,a)
- c=C.rfind(":",0,b)
- f=C[c+1:b]
- b=C[b+1:a]
- C=C[:c]+(Smod[f](b) if f in Smod else Rue(f,b,s+1))+C[a+1:]
- a=C.find("}",c)
- if a is -1:break
- return C
-def Smod(x):
- print x
- return ""
-Smod={"print":Smod,"input":input,"argv":dict(((str(a),b) for a,b in enumerate(argv[2:]))).__getitem__}
-argv="_" if len(argv) is 1 else argv[1]
-D=open(argv+".txt").read(9)=="::=debug\n"
-#"""
-if D:print(Rue(argv))
-else:Rue(argv)
-"""
-from cProfile import run;D=0;run("Rue(argv)")
-"""#"""
+#!/usr/bin/python
+from re import compile as re
+from sys import argv
+from random import choice,seed;seed();del seed
+k=re(r"^::=.+",8).sub
+G={}
+try:
+ input=raw_input
+ range=xrange
+ from itertools import izip as zip
+except:pass
+def Rue(f,A="",s=0):
+ if f in G:f=G[f]
+ else:
+ c=f
+ f=k("",open(f+".txt").read())
+ if f.startswith("import "):
+ a=f.find("\n",8)
+ f=open(f[7:a]+".txt").read()+f[a:]
+ a=f.find("\nimport ")+1
+ while a:
+ b=f.find("\n",a+8)
+ f=f[:a]+open(f[a+7:b]+".txt").read()+f[b:]
+ a=f.find("\nimport ",a)+1
+ f=f.split("\n::=\n")
+ G[c]=f
+ c=""
+ R=[]
+ for lf,C in zip(range(len(f)-1,-1,-1),f):
+ R+=((re(R[0],16).sub,R[1] if len(R) is 2 else R[1:] or "",len(R) is 1) for R in (R.split("::=") for R in c.split("\n") if R))
+ while 1:
+ while 1:
+ c=C=C.replace("@@",A)
+ for p0,p1,p2 in R:
+ C=p0(choice(p1) if p2 else p1,C,1)
+ if c is not C:break
+ else:break
+ if D:print(" "*s+C)
+ if lf:break
+ a=C.find("}")
+ if a is -1:break
+ while 1:
+ b=C.rfind("{",0,a)
+ c=C.rfind(":",0,b)
+ f=C[c+1:b]
+ b=C[b+1:a]
+ C=C[:c]+(Smod[f](b) if f in Smod else Rue(f,b,s+1))+C[a+1:]
+ a=C.find("}",c)
+ if a is -1:break
+ return C
+def Smod(x):
+ print(x)
+ return ""
+Smod={"print":Smod,"input":input,"argv":dict(((str(a),b) for a,b in enumerate(argv[2:]))).__getitem__}
+argv="_" if len(argv) is 1 else argv[1]
+D=open(argv+".txt").read(9)=="::=debug\n"
+#"""
+if D:print(Rue(argv))
+else:Rue(argv)
+"""
+from cProfile import run;D=0;run("Rue(argv)")
+"""#"""
View
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
View
10 _.txt
@@ -1,6 +1,6 @@
-::=debug
-::=Generally you don't want to have an infinity pump, so this is a comment
-::=:print{:len{:fib{:len{:input{:reverse{>>srahcenin yrt}}}}}}
-:fib{16}
-:ewfib{16}
+::=::=debug
+::=Generally you don't want to have an infinity pump, so this is a comment
+::=:print{:len{:fib{:len{:input{:reverse{>>srahcenin yrt}}}}}}
+:fib{16}
+:ewfib{16}
:fib.1{,,,,,,,,,,,,,,,,}
View
@@ -1,5 +1,5 @@
- (,*)::=\1,
-(,*), ::=:acker.1{\1 ,}
-(,*), (,*),::=:acker.1{\1 :acker.1{\1, \2}}
-::=
+ (,*)::=\1,
+(,*), ::=:acker.1{\1 ,}
+(,*), (,*),::=:acker.1{\1 :acker.1{\1, \2}}
+::=
@@
View
@@ -1,3 +1,3 @@
-import ArgV
-::=
+import ArgV
+::=
ArgV@@
View
@@ -1,9 +1,9 @@
-?::=1::=2::=3::=4::=5::=6
-.*,,,,,,,,,,$::=
-(.)(.)(.)(.);(.{3})\4;::=\1\2\3\4;\5;:
-(.)(.)(.)(.);(.{2})\3(.);::=\1\2\3\4;\5;:
-(.)(.)(.)(.);(.{1})\2(.{2});::=\1\2\3\4;\5;:
-(.)(.)(.)(.);\1(.{3});::=\1\2\3\4;\5;:
-(.)(.)(.)(.);(.*)\1(.*)::=
-::=
+?::=1::=2::=3::=4::=5::=6
+.*,,,,,,,,,,$::=
+(.)(.)(.)(.);(.{3})\4;::=\1\2\3\4;\5;:
+(.)(.)(.)(.);(.{2})\3(.);::=\1\2\3\4;\5;:
+(.)(.)(.)(.);(.{1})\2(.{2});::=\1\2\3\4;\5;:
+(.)(.)(.)(.);\1(.{3});::=\1\2\3\4;\5;:
+(.)(.)(.)(.);(.*)\1(.*)::=
+::=
:input{>>};????
View
@@ -1,22 +1,22 @@
-(?<=[01]{4})([01])::=;\2
-;0000::=0
-;0001::=1
-;0010::=2
-;0011::=3
-;0100::=4
-;0101::=5
-;0110::=6
-;0111::=7
-;1000::=8
-;1001::=9
-;1010::=A
-;1011::=B
-;1100::=C
-;1101::=D
-;1110::=E
-;1111::=F
-^;([01]{3})::=0\1
-^;([01]{2})::=00\1
-^;([01])::=000\1
-::=
+(?<=[01]{4})([01])::=;\2
+;0000::=0
+;0001::=1
+;0010::=2
+;0011::=3
+;0100::=4
+;0101::=5
+;0110::=6
+;0111::=7
+;1000::=8
+;1001::=9
+;1010::=A
+;1011::=B
+;1100::=C
+;1101::=D
+;1110::=E
+;1111::=F
+^;([01]{3})::=0\1
+^;([01]{2})::=00\1
+^;([01])::=000\1
+::=
;@@
Oops, something went wrong.

0 comments on commit b1b5302

Please sign in to comment.