An open API service indexing awesome lists of open source software.

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

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`