Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -4,19 +4,33 @@
|
|||
{{language programming paradigm|hosted}}
|
||||
{{implementation|Lisp}}
|
||||
|
||||
'''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''' is a new programming language that uses [https://yaml.org/ 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 is also available in several programming languages as a binding module to the <code>libyamlscript.so</code> shared library:
|
||||
|
||||
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.
|
||||
* [https://metacpan.org/pod/YAMLScript Perl]
|
||||
* [https://pypi.org/project/yamlscript/ Python]
|
||||
* [https://raku.land/zef:ingy/YAMLScript Raku]
|
||||
* [https://rubygems.org/gems/yamlscript Ruby]
|
||||
* [https://crates.io/crates/yamlscript Rust]
|
||||
|
||||
==Installing YAMLScript==
|
||||
|
||||
Run this command to install the 'yamlscript' command line runner program.
|
||||
Run this command to install the <code>ys</code> command line YAMLScript runner/loader/compiler program.
|
||||
|
||||
cpanm YAML
|
||||
curl -s https://yamlscript.org/install | PREFIX=$HOME BIN=1 bash
|
||||
|
||||
==See Also==
|
||||
That will install <code>$HOME/bin/ys</code>. If <code>$HOME/bin</code> is not in your <code>PATH</code>, run:
|
||||
|
||||
* [https://metacpan.org/pod/YAMLScript YAMLScript Doc]
|
||||
* [https://metacpan.org/pod/Lingy Lingy Doc]
|
||||
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
|
||||
-e, --eval YSEXPR Evaluate a YAMLScript expression
|
||||
...
|
||||
See https://yamlscript.org for more information.
|
||||
1
Lang/YAMLScript/Leap-year
Symbolic link
1
Lang/YAMLScript/Leap-year
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../Task/Leap-year/YAMLScript
|
||||
Loading…
Add table
Add a link
Reference in a new issue