I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)


From Rosetta Code
This programming language may be used to instruct a computer to perform a task.
Official website
Parameter passing methods: By reference, By value
Type safety: Safe
Type expression: Implicit
Type checking: Dynamic
See Also:

Listed below are all of the tasks on Rosetta Code which have been solved using Gri.
Your Help Needed
If you know Gri, please write code for some of the tasks not implemented in Gri.

Gri is a scripting language for drawing scientific graphs with output to PostScript.

Data points to plot can be read from a file or can be generated by an external program such as Awk. Data manipulation within Gri is limited, it being designed to be done by external crunching.

Drawing commands are provided to add various kinds of symbols, textual annotations, trend lines, etc. Those commands can be used for general purpose drawing too, with no graph data at all.

New commands are defined with a kind of keyword matching

`My Command .arg1. to .arg2.'
Docstring describing this command.
# code here
# call as
My Command 123 to 456

New commands can loop and call each other, including recursively. Commands can set global or local variables and can use "synonyms" to act on named variables.

Arithmetic is done in reverse-polish such as

{rpn 123 456 +}

New rpn functions can be defined. They're a simple substitution with no looping, conditionals or recursion.

Pages in category "Gri"

The following 6 pages are in this category, out of 6 total.