Skip to content

Commit

Permalink
Remove Gri
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Oct 21, 2019
1 parent 8423f58 commit ace0a2c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/code-gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -639,18 +639,16 @@ class Haskell < CodeGen
Code = %q("main=putStr"+E[PREV])
end

class Gri_Groovy_Gzip < CodeGen
File = ["QR.gri", "QR.groovy", "QR.gz"]
Cmd = ["gri QR.gri > OUTFILE", "groovy QR.groovy > OUTFILE", "gzip -cd QR.gz > OUTFILE"]
Apt = ["gri", "groovy", "gzip"]
class Groovy_Gzip < CodeGen
File = ["QR.groovy", "QR.gz"]
Cmd = ["groovy QR.groovy > OUTFILE", "gzip -cd QR.gz > OUTFILE"]
Apt = ["groovy", "gzip"]
def code
<<-'END'.lines.map {|l| l.strip }.join
%(
show "
z=new java.util.zip.GZIPOutputStream(System.out);
z.write('#{PREV.tr(?"+B,"!~")}'.tr('~!','\\\\\\\\\\u0022')as byte[]);
z.close()
"\n
z=new java.util.zip.GZIPOutputStream(System.out);
z.write('#{PREV.tr(?"+B,"!~")}'.tr('~!','\\\\\u0022')as byte[]);
z.close()
)
END
end
Expand Down

0 comments on commit ace0a2c

Please sign in to comment.