Sha256: fa6edb996a8405a70c5f5842326ec4b1940cae17671dbc71991ea1e334ea5681
Contents?: true
Size: 725 Bytes
Versions: 10
Compression:
Stored size: 725 Bytes
Contents
# Use Dydx -> https://github.com/gogotanaka/dydx require 'dydx' include Dydx require "qlang/version" require 'qlang/lexer' require 'qlang/parser' require 'qlang/exec' require 'qlang/iq' require 'kconv' require 'matrix' module Qlang # compiles into R as default. $type = :R class << self def compile(str) lexed = Lexer.execute(str) Kconv.tosjis(Parser.execute(lexed)) end def to_ruby $type = :Ruby Qlang end def to_r $type = :R Qlang end def to_haskell $type = :Hskl Qlang end def to_scala $type = :Scla Qlang end def to_java $type = :Scla Qlang end end end # Make alias as Q Q = Qlang
Version data entries
10 entries across 10 versions & 1 rubygems