ComputerCraft Forums

ComputerCraft => Programs => APIs and Utilities => Topic started by: CCTech on May 29, 2019, 11:51 PM

Poll
Question: Should I write another langauge? If yes: which language?
Option 1: Java votes: 10
Option 2: RheoLib (A Library language for Rheo) votes: 2
Option 3: Another langauge (Write as reply) votes: 0
Option 4: C++/C# votes: 0
Title: [CC:Tweaked] Rheo - Development Kit
Post by: CCTech on May 29, 2019, 11:51 PM
Rheo
is a development kit for CC:Tweaked. It sadly does not work for CC. I am still trying to make it compatible.

What is Rheo
Rheo is a development kit for CC:Tweaked that comes with 2 programs and one API:
  • Rheo
  • REdit
  • dict.lua

dict.lua is an API for JSON-like files which are used in Rheo.
REdit is a customized edit program for RheoScript and here we go:
Rheo is the main program of this utitlity: It is an interpreter for RheoScript, a language made for Rheo in CC.

There is a documentation about RheoScript on it's github page:
https://github.com/CCTech-ComputerCraft/Rheo/wiki

RheoScript is not as powerful as Lua but, I tried my best.

and that's one reason of dict.lua: Rheo uses a format called "dict" for data saving, like other programs use JSON.

And for Lua support you can parse dict's using
dict.parse(string or table)since there's no real documentation for dict.lua a small example:
local dict = require("rheo/dict.lua")

local dc = {
  hello = "World",
  world = "Hello"
}

local dc = parse.dict(dc)
--[[ returns:
  hello => World
  world => Hello
]]--

and if you parse a string it will return a table

Now after speaking really much: The pastebin download of Rheo:
pastebin run 9DJzarXT
Thanks for your interest, Feel free to report any bugs, or give feedback
Title: [CC:Tweaked] Rheo - Development Kit
Post by: Yemmel on May 30, 2019, 08:15 PM
It looks good, but I'd really like to see Java in CC