Crates.io | jonlang |
lib.rs | jonlang |
version | 0.1.0 |
source | src |
created_at | 2024-08-05 22:15:47.913434 |
updated_at | 2024-08-05 22:15:47.913434 |
description | basic scripting language made to learn rust |
homepage | https://github.com/maverik-io |
repository | https://github.com/maverik-io/jonlang-rust |
max_upload_size | |
id | 1326602 |
size | 12,312 |
jonlang is an easy programming language built as a joke.
jonlang has pretty simple rules -:
hi, jon !
and end with bye, jon !
jon,
and end with an exclamation point !
say
- output and inputCommand | Description | Usage Examples |
---|---|---|
say <msg> | prints messages onto the console | jon, say "Hello, World" ! |
say <msg> and read into <varname> | prints a prompt onto the console and gets input into the specified variable | jon, say "Name: " and read into name as text! |
say <msg> and read aloud <varname> | prints a message and the value of a variable | jon, say "Your name is :" and read aloud name ! |
[!TIP] The read into operation needs a type that can be
number
ortext
remember
- variable controlCommand | Description | Usage Examples |
---|---|---|
remember that <varname> is <value> | sets variables | jon, remember that pi is 3.14 ! |
remember that <varname> will be <expression> | do math with variables | jon, remember that s_square will be s times s |
[!TIP] The above expression takes 4 keywords for math:
operation keyword Addition plus Subtraction minus Multiplication times Division by