Category:YAMLScript: Difference between revisions
Content added Content deleted
No edit summary |
(Updated YAMLScript description) |
||
Line 5: | Line 5: | ||
{{implementation|Lisp}} |
{{implementation|Lisp}} |
||
'''YAMLScript''' is a new programming language that uses YAML as its syntax. It is a complete, functional, general purpose language, but can also be easily embedded in YAML files to make them dynamic at load time. Most existing YAML files and all JSON files are already valid YAMLScript programs. YAMLScript has a compiler/interpreter CLI program called <code>ys</code> and will soon be available as a libyamlscript.so binding module in 42 programming languages. |
|||
'''YAMLScript''' a hosted '''Lisp''' like '''Clojure''' (Java/JVM) and '''ClojureScript''' (JavaScript). |
|||
Actually it is simply an alternate syntax reader for Clojure and Lingy. |
|||
'''Lingy''' is a port of Clojure to various programming languages including Perl. |
|||
YAMLScript offers all the power of Lisp but with a various syntax features that strive to make it more readable than encoding everything as nested s-expression forms. |
|||
==Installing YAMLScript== |
==Installing YAMLScript== |
||
Run this command to install the |
Run this command to install the <code>ys</code> command line YAMLScript runner/loader/compiler program. |
||
curl -s https://yamlscript.org/install-ys | PREFIX=$HOME bash |
|||
That will install <code>$HOME/bin/ys</code>. If <code>$HOME/bin</code> is not in your <code>PATH</code>, run: |
|||
cpanm YAML |
|||
export PATH=$HOME/bin:$PATH |
|||
==See Also== |
|||
Test the new installation: |
|||
* [https://metacpan.org/pod/YAMLScript YAMLScript Doc] |
|||
$ ys --help |
|||
* [https://metacpan.org/pod/Lingy Lingy Doc] |
|||
ys - The YAMLScript (YS) Command Line Tool |
|||
Usage: ys [options] [file] |
|||
Options: |
|||
-r, --run Compile and evaluate a YAMLScript file (default) |
|||
-l, --load Output the evaluated YAMLScript value |
|||
-c, --compile Compile YAMLScript to Clojure |
|||
-e, --eval YSEXPR Evaluate a YAMLScript expression |
|||
-C, --clj Treat input as Clojure code |
|||
... |
Revision as of 05:20, 19 December 2023
![Language](http://static.miraheze.org/rosettacodewiki/thumb/2/27/Rcode-button-language-crushed.png/64px-Rcode-button-language-crushed.png)
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
See Also: |
|
---|
YAMLScript is an implementation of Lisp.
Other implementations of Lisp.
YAMLScript is a new programming language that uses YAML as its syntax. It is a complete, functional, general purpose language, but can also be easily embedded in YAML files to make them dynamic at load time. Most existing YAML files and all JSON files are already valid YAMLScript programs. YAMLScript has a compiler/interpreter CLI program called ys
and will soon be available as a libyamlscript.so binding module in 42 programming languages.
Installing YAMLScript
Run this command to install the ys
command line YAMLScript runner/loader/compiler program.
curl -s https://yamlscript.org/install-ys | PREFIX=$HOME bash
That will install $HOME/bin/ys
. If $HOME/bin
is not in your PATH
, run:
export PATH=$HOME/bin:$PATH
Test the new installation:
$ ys --help ys - The YAMLScript (YS) Command Line Tool Usage: ys [options] [file] Options: -r, --run Compile and evaluate a YAMLScript file (default) -l, --load Output the evaluated YAMLScript value -c, --compile Compile YAMLScript to Clojure -e, --eval YSEXPR Evaluate a YAMLScript expression -C, --clj Treat input as Clojure code ...
Pages in category "YAMLScript"
The following 8 pages are in this category, out of 8 total.