Giter Club home page Giter Club logo

Comments (7)

mame avatar mame commented on June 12, 2024

Yes you're right. It is far from complete.

I picked the fifty languages that I can install easily on Ubuntu. I wish Ubuntu would provide Befunge, Lazy K, Piet, etc etc. (Unlambda and Whitespace had been also provided when I had written the old version of Quine relay, but unfortunately they were deleted.)
So, I'd like you to become a Debian or Ubuntu developer and provide the interpreters. Then I can support them easily.

Alternative: give me a complete and small (up to about 100 lines) implementation written in Ruby, like unlambda.rb and whitespace.rb.

Incidentally, there is no reason that Erlang and PostScript are not included. It is just an accident.

from quine-relay.

LeviSchuck avatar LeviSchuck commented on June 12, 2024

http://lolcode.org/ Has an ANSI C based interpreter. A deb might be able to be packaged up for it.

from quine-relay.

pczarn avatar pczarn commented on June 12, 2024

Arch has lolcode interpreter aur/lci-git 20110725-1. We need to check LOLCODE's support for strings.

I was thinking of Rust, but Ubuntu doesn't provide compilers in alpha.

Edit: long strings work, but double quotes can't be escaped. Next language is Lua, so " must be escaped to eg. c=string.char(34)

Edit: also need befunge language implementation

from quine-relay.

mame avatar mame commented on June 12, 2024

@pczarn Actually LOLCODE has the escape character. It is not backslash but colon, though.

"foo:"bar:)baz" in LOLCODE  =  "foo\"bar\nbaz" in C

The following CodeGen will work. However, the code spills from the template. We need to make the template bigger or the code smaller.

class LOLCODE < CodeGen
  File = "QR.lol"
  Cmd = "/path/to/lci QR.lol > OUTFILE"
  Apt = [nil]
  Code = %q(%(hai 1.2\nvisible "_"\nkthxbye).upcase.gsub("_"){PREV.gsub(/[:"\n]/,?:=>'::',?"=>':"',?\n=>":\x29")})
end

from quine-relay.

pczarn avatar pczarn commented on June 12, 2024

I found some bytes to throw out.

from quine-relay.

mame avatar mame commented on June 12, 2024
class Awk_Befunge < CodeGen
  File = ["QR.awk", "QR.bef"]
  Cmd = ["awk -f QR.awk > OUTFILE", "/tmp/cfunge-0.9.0/build/cfunge QR.bef > OUTFILE"]
  Apt = ["gawk", nil]
  Code = %q(%(BEGIN{s=#{E[D[PREV,?!]]};gsub(/!/,"\\\\\\\\",s);gsub(/./,"\\\\"&\\\\",",s);gsub(/"""/,"75*1-"
,s);print s,"@"}))
end

from quine-relay.

LeviSchuck avatar LeviSchuck commented on June 12, 2024

I approve.

from quine-relay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.