https://github.com/space-boy-industries/basic-computing
https://github.com/space-boy-industries/basic-computing
basic computer fabric minecraft minecraft-mod programming
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/space-boy-industries/basic-computing
- Owner: Space-Boy-Industries
- License: other
- Created: 2024-11-30T01:49:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T19:51:11.000Z (about 1 year ago)
- Last Synced: 2025-01-30T14:39:19.766Z (11 months ago)
- Topics: basic, computer, fabric, minecraft, minecraft-mod, programming
- Language: Kotlin
- Homepage:
- Size: 4.37 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Basic Computing
WIP mod to add BASIC Computers to Minecraft. The goal is to create a computer mod that captures the nostalgic experience of retro computer systems while also still be accessible/useful to minecraft players.
## K-Basic (Name Pending)
K-Basic is the custom BASIC implementation that is used in this mod. It is a simple BASIC interpreter that is designed to be easy to use and understand.
### Features
- Variables
- Arithmetic Operations
- Boolean Operations
- Basic Control Flow
### Example Code
```BASIC
LET A = 5
LET B = 10
LET C = A + B
IF C > 10 PRINT "C is greater than 10"
IF C < 10 PRINT "C is less than 10"
IF C == 10 PRINT "C is equal to 10"
```
### Grammar
```BNF
::= +
::=
|
|
|
|
::= "LET" "="
::= "PRINT"
::= "LABEL"
::= "GOTO"
::= "IF"
::= { ("+" | "-" | "==" | "!=" | ">" | "<" | ">=" | "<=") }
::= { ("*" | "/") }
::=
|
|
| "(" ")"
::= [0-9]+
::= [a-zA-Z_][a-zA-Z0-9_]*
::= '"' * '"'
::= [a-zA-Z0-9!#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]
::= "+" | "-" | "*" | "/" | "=" | "==" | "!=" | ">" | "<" | ">=" | "<="
::= "("
::= ")"
```