| Crates.io | ospl |
| lib.rs | ospl |
| version | 0.2.0 |
| created_at | 2025-09-19 22:20:28.761524+00 |
| updated_at | 2025-11-06 00:10:05.994305+00 |
| description | the (UNFINISHED!!!) OSPL programming language |
| homepage | https://ospl-lang.github.io |
| repository | |
| max_upload_size | |
| id | 1847188 |
| size | 245,591 |
A programming language with a Rust-based interpreter.
cargo build
./target/debug/ospl run <file.ospl>
./target/debug/ospl run test.ospl
Alternative commands:
exe or r - run a file with statementsrun-expr - run a file as an expressionrun-stmt - run a file as a single statementComments:
# for line comments***** multiline ***** for block commentsVariables:
def x = 10;
x = 20; # reassignment
Functions:
def add = fn((a, b), c) {
return a + b + c;
};
Control flow:
if condition {
# code
} else if other {
# code
} else {
# code
};
select value {
case (pattern) {
# code
}
case (_) {
# default case
}
};
loop {
# infinite loop
};
Install the .vsix file for syntax highlighting.
or compile it with:
cd vscode/ospl-vscode && npx vsce package | cat