[CC:Tweaked] Rheo - Development Kit

Started by CCTech, May 29, 2019, 11:51 PM

Previous topic - Next topic

Should I write another langauge? If yes: which language?

Java
10 (83.3%)
RheoLib (A Library language for Rheo)
2 (16.7%)
Another langauge (Write as reply)
0 (0%)
C++/C#
0 (0%)

Total Members Voted: 10

CCTech

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

Yemmel

It looks good, but I'd really like to see Java in CC