This repository has moved to a subdirectory of the rchain repo
If you're interested in playing with the Rholang SDK please see the developer website.
Rholang is a behaviorally typed, concurrent programming language, with a focus on message-passing and formally modeled by the ρ-calculus, a reflective, higher-order extension of the π-calculus. It is designed to be used to implement protocols and "smart contracts" on a general-purpose blockchain, but could be used in other settings as well.
The language is still in the early stages of development, but for those who are interested, more information can be found in the RChain Platform Architecture.
- Clone the repository
- Configure/fetch dependencies
- Run
sbt bnfc:generate
to generate the parser - Run
sbt console
to launch the sbt console - In the sbt console import the compiler with
import coop.rchain.rho2rose._
- And then compile any Rholang ".rho" file with
Rholang2RosetteCompiler.main(Array("<path_to_Rholang_file>.rho"))
Note if you make any changes you may need to run sbt clean
or sbt bnfc:clean
.