The Lyrical Language of Logic & Sorcery
Conventional programming languages treat source code as dry imperative syntax designed to satisfy compilers. Syntaxeon (Songs of Syntaxeon, Language Specification v1.1) subverts this convention to explore the expressive power of natural prose and poetic cadence as an executable computational medium.
In Syntaxeon, lines of code are written as verses, programs are composed as songs, and modules are declared as scrolls. Logic flows through elemental declarations, assertions, and bardic tokens.
“Where lines are verses, code is song, and each construct whispers meaning into the void.”
Lyrical Grammar & Elemental Foundations
Rather than relying on sterile keywords, Syntaxeon assigns narrative syntax to core computational types:
- Character Runes (
char):Let [var] be 'x'orMark [var] the rune 'x' - Integer Counts (
int/short):Speak [var] a number [value]orTell [var] of the count [value] - Floating Streams (
float/double):Draw [var] the stream of [val]orSketch [var] the vast ocean of [val] - Boolean Assertions (
bool):Tell me [var] trueorSwear [var] so/Swear [var] not - Binary Sparks (
bit):Strike [var] one sparkorNone at all [var] - Immutable Constants:
Etch in stone [CONST] as [value]orBy decree, [CONST] is [value]
Bardic Structure: Scrolls, Songs & Verses
Programs organize modularity and control flow through musical metaphors:
- Scrolls (Modules): Bounded compilation units declared with
Let there be a Scroll named [MODULE]:and sealed withEnd of Scroll. - Songs (Classes): Object hierarchies with inheritance declared via
Let [Song] inherit from [ParentSong]:. - Verses (Functions): Executable routines defined with
Begin the Verse [NAME]:and returning results throughOffer [value] in reply. - Narrative Control Flow: Conditionals structured as
If the tale of [bool] is true:and loops framed asFor every step in the saga: [value].
Bardic Exception Hierarchy
When runtime discord occurs, Syntaxeon handles errors through a distinct bardic exception taxonomy:
SyntaxeonRuntimeError: General execution fault in the Syntaxeon realm.NotRhythmVerseError: Emitted when verse rhythm or meter is disrupted.DiscordantTruthError: Triggered when assertions evaluate to unresolved contradiction.CircleOfMadnessError: Infinite recursion or unbounded cyclical execution.ForgottenNameError: Unresolved symbol or variable identifier.
