https://github.com/gotz1480/spqr
SPQR esoteric programming language based on the latin language
https://github.com/gotz1480/spqr
esoteric-language esoteric-programming-language
Last synced: 7 months ago
JSON representation
SPQR esoteric programming language based on the latin language
- Host: GitHub
- URL: https://github.com/gotz1480/spqr
- Owner: gotz1480
- License: gpl-3.0
- Created: 2022-07-13T18:47:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T02:52:16.000Z (over 3 years ago)
- Last Synced: 2025-04-04T13:13:20.479Z (7 months ago)
- Topics: esoteric-language, esoteric-programming-language
- Language: C
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SPQR
SPQR esoteric programming language based on the latin language## Usage
`./spqr `
## Example
### Compiling
`./spqr example.spqr example`
### Running
`./example`
### Output
`Carthago delenda est!`
`Gallia est omnis divisa in partes tres.`## Basic syntax
### Hello world
`imprimire("Salve mundi!")`
### Datatypes
Integer - `numerus`
String - `verbum`
Char - `littera`
Boolean - `booleanus`
Float - `fluito`### If-else statement
`numerus a = I`
`numerus b = V`
`si b == a:`
`imprimire("a aequalis b")`
`aliud:`
`imprimire("a non aequalis b")`
`finis`### While statement
`numerus a = nullus`
`dum a < V:`
`a += I`
`finis`### Switch statement
`numerus a = VII`
`electio a:`
`casus VII:`
`imprimire("a aequalis VII")`
`finis`### For statement
`nam numerus a = nullus, a < X, a++:`
`imprimire("Ave Caesar!")`
`finis`