https://github.com/zanderlewis/solitude
Simple and small programming language with built-in support for threading.
https://github.com/zanderlewis/solitude
Last synced: about 1 year ago
JSON representation
Simple and small programming language with built-in support for threading.
- Host: GitHub
- URL: https://github.com/zanderlewis/solitude
- Owner: zanderlewis
- License: apache-2.0
- Created: 2024-09-09T21:59:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-04T21:40:44.000Z (over 1 year ago)
- Last Synced: 2025-02-02T08:42:21.176Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solitude
Simple programming language that supports threading.
## Table of Contents
- [Solitude](#solitude)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [Syntax](#syntax)
- [Variables](#variables)
- [Print](#print)
- [If](#if)
- [Functions](#functions)
- [Comments](#comments)
- [User Input](#user-input)
- [Threading](#threading)
- [Features](#features)
- [License](#license)
## Installation
```bash
git clone https://github.com/zanderlewis/solitude.git
cd solitude
```
## Usage
```bash
cargo run
```
## Example
```solitude
var x=5
The value of x is: $x
```
## Syntax
Solitude has very simple syntax. Here is a complete list:
### Variables
```solitude
var x=5
```
### Print
```solitude
Hello World
var x=5
$x
```
### If
```solitude
if x>5
x is greater than 5
fi
```
### Functions
```solitude
func greet
Hello!
cnuf
call greet
```
### Comments
```solitude
. I am a comment
```
### User Input
```solitude
. The \x20 is a space character
input x -> Enter a number for x:\x20
$x
```
### Threading
```solitude
!!
call func1
call func2
??
```
## Features
- Simple syntax
- Easy to learn
- Small codebase
- Fast
- Built-in threading
- Written in Rust
## License
Solitude is licensed under the [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0) license. Please see the [`LICENSE`](LICENSE) file for more information.