Suggested file extension: *.rjs
May 16 2022: ReadableScript is in DRAFT status and is not yet production-ready.
Nov 7 2022: Replaced single quote (') with comma (,)
This document, and all code contained herein are hereby released into the public domain by the author, without any guarantee or implied fitness for any particular purpose. You are free to copy, sell, use this code in commercial or personal projects. You are not required to include any notice in your projects as this code is in the public domain.
Yes - I discovered, one can substitute the complex symbols commonly found in programming languages with a set of keywords. This makes the language easier to express to another person over an audio connection, such as a telephone call, internet meeting, or in person. The two symbols I chose to preserve, to aid readability are:
# the hash sign, to add a comment: code following a hash sign will have no effect , the comma, representing a block when used at the start of a line, or a line separator otherwise
The language is most similar to assembly in syntax, with one command per line of code (although , multiple , lines , can , be , simulated , with , commas). We can express a programming grammar using uppercase letters, and [ and ] to desginate optionality. The statement format is then (any number of arguments is possible, for brevity I only show 3):
KEYWORD [ARGUMENT [ARGUMENT [ARGUMENT]]]
Spaces beyond a single space between keywords and arguments are optional, and have no effect.
The machine runs your code, and it is responsible for defining the keywords that it understands.