Skip to content

Commit

Permalink
Add LiveScript, Curry, Yabasic, VimScript as pool
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Apr 6, 2017
1 parent 555e628 commit 2a001f1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/code-gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,15 @@ def code
end
end

class LiveScript < CodeGen
Disabled = true
Name = "LiveScript"
File = "QR.ls"
Cmd = "lsc QR.ls > OUTFILE"
Apt = "livescript"
Code = %q("console.log"+Q[E[PREV],?#])
end

class Julia_LazyK_Lisaac < CodeGen
Name = ["Julia", "Lazy K", "Lisaac"]
File = ["QR.jl", "QR.lazy", "qr.li"]
Expand Down Expand Up @@ -744,6 +753,14 @@ class D < CodeGen
Code = %q("import std.stdio;void main(){write(`#{PREV}`);}")
end

class Curry < CodeGen
Disabled = true
File = "QR.curry"
Cmd = "runcurry QR.curry > OUTFILE"
Apt = "pakcs"
Code = %q("main=putStr"+E[PREV])
end

class CommonLisp < CodeGen
Name = "Common Lisp"
File = "QR.lisp"
Expand Down Expand Up @@ -1027,6 +1044,14 @@ class Yorick < CodeGen
Code = %q(%(write,format="#{y="";f(PREV,35){y<<",\\n"+$S;"%s"}}")+y)
end

class Yabasic < CodeGen
Disabled = true
File = "QR.yab"
Cmd = "yabasic QR.yab > OUTFILE"
Apt = "yabasic"
Code = %q(f(PREV,50){"print#$S;:"})
end

class XSLT < CodeGen
File = "QR.xslt"
Cmd = "xsltproc QR.xslt > OUTFILE"
Expand Down Expand Up @@ -1075,6 +1100,15 @@ def code
end
end

class VimScript < CodeGen
Disabled = true
Name = ["Vimscript"]
Apt = "vim"
File = "QR.vim"
Cmd = "vim -EsS QR.vim > OUTFILE"
Code = %q("let s=#{E[PREV]}\nput=s\nprint\nqa!")
end

class Verilog < CodeGen
File = "QR.v"
Cmd = "iverilog -o QR QR.v && ./QR -vcd-none > OUTFILE"
Expand Down

0 comments on commit 2a001f1

Please sign in to comment.