Symphony EsolangSymphony is an interpreted, stack-based esoteric programming language where source code is structured and performed as a musical score. This extension provides a development environment for writing, and executing Symphony files within VS Code.
The Symphony LanguageSymphony operates on a time-based execution model where one line of code equals one beat. This ensures that the program logic remains synchronized with the musical rhythm. The language utilizes a 3D instruction mapping system to define its 70 distinct instructions. The logic of a note is determined by three variables:
Extension FeaturesSyntax HighlightingThe extension provides specialized highlighting for Symphony's unique syntax. It distinguishes between musical notes, percussion tokens, and parameters such as instrument ( Hover InformationBecause the meaning of a note changes based on its velocity and duration, the extension includes a hovering system. Moving the cursor over a note displays the specific instruction mapped to that combination, preventing the need to consult the mapping table manually during development. Code SnippetsBuilt-in snippets are included to accelerate the creation of common Symphony structures. Integrated ExecutionThe extension adds a "Play" button to the editor title bar. When clicked, it invokes the Symphony interpreter to run the active file, allowing the user to hear the audio output and observe the stack operations in the terminal simultaneously. RequirementsTo use this project, ensure you have the following installed:
|