https://github.com/vishnuprasad2004/mylang
My own interpreted procedural language made purely for fun
https://github.com/vishnuprasad2004/mylang
Last synced: 2 months ago
JSON representation
My own interpreted procedural language made purely for fun
- Host: GitHub
- URL: https://github.com/vishnuprasad2004/mylang
- Owner: vishnuprasad2004
- License: gpl-3.0
- Created: 2025-02-03T17:45:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T18:15:15.000Z (4 months ago)
- Last Synced: 2025-04-11T00:59:25.547Z (2 months ago)
- Language: Python
- Homepage:
- Size: 6.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My Own Custom Interpreted Language
This is an interpreted language made in python.
**NOTE: As per now the there must be 1 space between each token in the language.**
## Datatypes available:
1. int
2. float
3. string
4. bool### Comments:
A comment is decalred using ```'``` as a start symbol.
```vb' This is a comment
```
### print and println:
These commands are used to print an output to the terminal screen.
```vbprint "Hello World"
println "Hello World"z = 10 + 1
println z
```
### input:
This command is used to take input of a particular data type and the input can be stored in a variable.syntax and example
```vb
' = input
num = input int "Enter a num: "
println num
```### if - endif:
This is used to implement if else logicsyntax and example
```vb
age = input int "Enter your age: "if age > 18
println "The person can vote."
endif
```
**if - else - endif not implemted yet**### while loop:
This is used to implement while loop logicsyntax and example
```vb
n = input int "Enter a number: "
r = 1while n >= 1
r = r * n
n = n - 1
endprint "Factorial is: "
print r```
---
## Disclaimer
1. **if - else - endif not implemted yet**
2. **As per now the there must be 1 space between each token in the language.**
3. **Block level variable declaration not available yet, so all variables should declared in global scope.**Made with ❤️ by Vishnu Prasad Korada