| Crates.io | alaybey |
| lib.rs | alaybey |
| version | 0.0.1 |
| created_at | 2021-05-08 23:47:01.406935+00 |
| updated_at | 2021-05-08 23:47:01.406935+00 |
| description | Alaybey is simple VM which operate basic instructions such as add,sub,div,mul and mod. its allow define variables and usage in operations. |
| homepage | https://github.com/drojokef/maggedik |
| repository | https://github.com/drojokef/maggedik |
| max_upload_size | |
| id | 395025 |
| size | 40,383 |
Alaybey is simple VM which operate basic instructions such as add,sub,div,mul and mod. its allow define variables and usage in operations.
Usage little endian byte ordiring first 3 bits reserved for opcode instructions.
example:
{
3 5 + 7 - 8 + 2 /;
10 5 - 4 * 8 + 4 /;
}
Save as give_name_what_you_want.alaybey
note : source file must end with ".alaybey" file
command : alaybey build give_name_what_you_want.alaybey
program will generated such as 'give_name_what_you_want.alaybeyvm'
then run command :
alaybey run give_name_what_you_want.alaybeyvm
result will be printed.
Or define variables:
{
$ val1 : 3 5 + 7 - 8 + 2 /;
$ my_other_val : 10 5 - val1 * 8 + 4 /;
$ result : my_other_val val1 - val1 * 8 + 4 /;
}