2 releases

0.1.11 Dec 1, 2019
0.1.9 Nov 27, 2019

#6 in #greeting

MIT/Apache

165KB
7K SLoC


title: "Rusk a Specification Language"

Usage

rusk [options] file.rsk > output.md

read the file and output a markdown document.

Command Line Options

  • -V, --version -- show version.
  • -h, --help -- show usage.
  • --markdown -- generate markdown document. (default)
  • --ast-json -- generate json text of ast.
  • --ast-json-pretty -- generate pretty json text of ast.
  • --title {title} -- set document title.

Example

event greet@(do greeting);

state Greeting@(greeting)
{
	var greeted: Boolean = false;
	transition greet
		when greeted == false @[- not yet -]
		-->
	{
		post {
			target greeted;
			greeted' = true;
			state' = Bye;
		}@{-
			Hello!
		-}
	}
}

state Bye@(bye!)
{
	// ...
}

Documents

References

KML

License

MIT OR Apache-2.0

Dependencies

~0.7–1.6MB
~34K SLoC