Overview
Lyric is an experimental programming language designed for clarity and expressiveness. It emphasizes readable syntax, intuitive structure, and the freedom to write code that feels natural.
Design Principles
Lyric is built on the idea that programming languages should amplify human creativity rather than stand in its way. Every feature is designed with the developer in mind, focusing on:
- Clarity: Designed with straightforward, expressive syntax.
- Safety: Enforces strict type-checking with support for an explicit dynamic type when needed.
- Performance: Built for practical speed through simplicity and direct execution on Python's runtime.
- Library Reuse: Lyric code can directly use Python lists, dictionaries, and modules — giving developers immediate access to powerful data structures and functionality out of the box.
Example
Here's a simple example of Lyric code:
# Define a function to calculate fibonacci numbers
def fib(int n) {
if n <= 1
return n
end
return fib(n - 1) + fib(n - 2)
}
def main() {
int result = fib(10)
print("The 10th fibonacci number is: ", result)
}
To run the script:
$ lyric fib.ly
The 10th fibonacci number is: 55
Documentation
- → Tutorial — Learn Lyric step by step, from installation through classes and system integration
- → Language Specification — The complete language reference and syntax guide
About This Project
Lyric was built with Python 3 and developed via human–AI collaboration at MiraNova Studios. It is no longer an actively developed project, but its documentation is preserved here for anyone who wants to explore it. The source is available on GitHub, and it's released under the GPL v3 license.