https://github.com/youngermaster/yasic
On this repository you will find a programming language similar to BASIC.
https://github.com/youngermaster/yasic
Last synced: 22 days ago
JSON representation
On this repository you will find a programming language similar to BASIC.
- Host: GitHub
- URL: https://github.com/youngermaster/yasic
- Owner: Youngermaster
- Created: 2019-05-02T22:35:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-16T05:43:10.000Z (over 4 years ago)
- Last Synced: 2025-10-26T22:28:10.790Z (9 months ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YASIC
On this repository you will find a programming language similar to BASIC.
Also this is my first programming language made on python 3.
#### Before use it you have to install the next things:
- Python 3.x
* Go to the oficial Python page to download it.
- sly (This is a python library).
* use: pip install sly
## Which operations you can do?
##### Note:
- You can use camelCase, snake_case or mix they to name functions or variables.
- The language doesn't recognize the parenthesis yet.
* ## Math operations:
* ### Addition.
You can add on these ways:
* 2 + 3
* a + b (In this case 'a' and 'b' can be number or strings).
* ### Substraction.
You can substract just with numbers.
* 4 - 5
* a - b
* ### Multiplication.
You can multiply on these ways:
* 20 * 5
* a * b
* name * 3 (name can be whatever string that you want).
* ### Division.
You can divide just with numbers.
* 12 / 4
* a / b
* ## Conditions:
If you want to do conditions you have to follow the next structure:
```basic
IF 'expression' THEN 'expression' ELSE 'expresion'.
```
A example can be:
```basic
IF a == 2 THEN a = a * 4 ELSE a = a / 3
```
* ## Loops:
If you want to do a loop you have to follow the next structure:
```basic
FOR 'expression' TO 'expression' THEN 'expression'
```
A example can be:
```basic
FOR x = 0 TO 5 THEN x * 2
```
* ## Functions:
If you want to do simple functions you have to follow the next structure:
```basic
FUN 'function name'() -> 'expression'
```
A example can be:
```basic
FUN myFirstYasicFunction() -> FOR x = 0 TO 10 THEN IF x == 4 THEN x * 100 ELSE x
```
## Autor
##### Juan Manuel Young Hoyos.