Rubysyn: clarifying Ruby's syntax and semantics
[WIP, 2026-04-01] This is an experiment in clarifying some aspects of Ruby syntax and semantics. For that we're going to introduce an alternative Lisp-based syntax for Ruby, preserving Ruby semantics.
The goal is to define a comprehensive, trivially-parsable and sugar-free syntax.
As I started working on this, I had to find a better explanation for some aspects of Ruby than what is available in standard documentation. So we also discuss some aspects of standard Ruby syntax and semantics.
See the spec/ directory for some corner cases of Ruby syntax and semantics that we are interested here.
Table of Contents
Array literals: full version
For some reason, the standard documentation does not explain full syntax of array literals.
Most common case of array literals is extremely well known:
empty array: [] ;
... continue reading