YS by Example
One of the best ways to learn a new programming language is to see examples of real code written in that language. This page contains a links to programs written in YS.
Note
The YS documentation is a work in progress. Looking at real life examples is a solid way to get started. If you feel the urge to contribute to the documentation, please do so. It would be greatly appreciated!
YS Examples of Refactoring Large YAML Files🔗
YS Examples of Programs, Utilities and Automation🔗
- Rosetta Code ⧉ YS (YAMLScript) solutions to Rosetta Code tasks.
- yamllm ⧉ A command line multi LLM (Anthropic, OpenAI, Gemma) query tool.
- sbs ⧉ Creates markdown gists to compare pairs of files "side by side". Used to show differences between YS and Go templates in Helm.
- Example gist comparing Helm templates in YS and Go ⧉
- ys-vs-rc ⧉ Compares YS and Rosetta Code solutions to the same problem in many languages.
- Example gist comparing FizzBuzz in YS vs many other languages ⧉
- YS Repository Utilities
- util/release-yamlscript ⧉
The utility that orchestrates the release of YS, including 12 binary builds
and
libyamlscript.so
bindings for 10 programming languages. - util/brew-update ⧉ The utility that updates the Homebrew formula for YS.
- util/mdys ⧉ Renders Markdown with embedded YS code blocks. Used for the YS documentation.
- util/version-bump ⧉ Bumps the version of dozens of YS files in the repository at release time.
More examples will be added here as they become known.
If you have YS example code you'd like to share, please submit a PR to the YS Repo ⧉.