A beginners friendly, Programing language made from the ground up with pyhton.
- Table of Contents
- Quick Start Guide, Syntax diffrences sheet and Beginner's Guide
- How to install the release version
- How to install the source code and use it
- Diffrences between Verscae and Python
- Features
- Currently Inbuilt Syntax
- Dramatic Mode in action
- Download the latest release from here
- Extract the zip file
- Open the folder in vscode
- Read the README.md file there or here
- Open a
.v
file in vscode - Open the command pallete
(Ctrl+Shift+P)
- Type
Select Language Mode
- Select
Rust
orSwift
(we dont have a syntax highlighter for verscae yet) - Enjoy
- Clone the repo with the following command
git clone https://github.com/Ze7111/Verscae-Programing-language
- Open the folder in vscode
- Open the command pallete
(Ctrl+Shift+P)
- Type
Select Python Interpreter
- Create a
.v
file in vscode - and put the following code in it (this is a test program)
public main() {
out < "Hello World" < blue < center < newl
}
-
For the above code to work, you need to have the following python modules installed
rich
playsound
requests
-
For Syntax highlighting do the following
- with the
.v
file open in vscode - Open the command pallete
(Ctrl+Shift+P)
- Type
Select Language Mode
- Select
Rust
orSwift
(we dont have a syntax highlighter for verscae yet) - Enjoy
- with the
-
To run the program do the following
- open the
.vscode
->tasks.json
file - save the file
- open the command pallete
(Ctrl+Shift+P)
- type
Preferences: Open Keyboard Shortcuts (JSON)
- add the following code to the file
{ "key": "F6", "command": "workbench.action.tasks.runTask", "args": "Run Verscae File" }, { "key": "shift+F6", "command": "workbench.action.tasks.runTask", "args": "Decompile Verscae File" }
- Now you can run the program by pressing
F6
and decompile it into a python file by pressingShift+F6
- open the
-
If you did everything correctly, you should see the following output
Hello World
| Go to the verscae.py
and set the music_option
to True
- While Running the file, add a True to the end, so the statemnt looks like the folloing (on windows)
$ verscae "examples\calculator.v" True
- Verscae is a
beginners friendly
language, so it has a lot of features that make it easier to learn. - Verscae is a non
indentation based
language, so you can use it without worrying about indentation. - Verscae is a
semicolon and comma
friendly language, so you can use it without worrying about semicolons and commas. - Verscae is non
linear
language, so you can use it without worrying about the order of the functions, classes, etc. - Verscae is a
dramatic
language, so you can use it in adramatic
way. - Verscae has a
decompiler
so you can decompile your verscae code to python. - Verscae is a
python
based language, so you can use it with python. - Verscae has
colors and emojis
so you can use it with colors and emojis.
At this point, you might be wondering, ghee, I have to give this language a try, but how do I do that?
- You can download the latest release from here
- Extract the zip and open the folder in vscode
- Read the README.md file there or read the Release Documentation
- Enjoy :D
- It natively works with python and python libraries
- The inbuilt syntax is very user friendly and easy to understand
- Inbuilt decompiler to converd Verscae files to python code
- Dramatic Music and cool build style
- Crossover between Java, JavaScript and Python
- No indentaiton Required anywhere at anypoint (you can still indent for neatness)
- All string types work nativly
Verscae Code | Description |
---|---|
try |
Tries to run the code in the try block |
if |
Runs the code in the if block if the condition is true |
else |
Runs the code in the else block if the condition is true |
for |
Runs the code in the for block for each item in the list |
while |
Runs the code in the while block while the condition is true |
class |
Defines a class |
new |
Creates a new instance of a class |
return |
Returns a value from a function |
from |
Imports a class from a module |
as |
Renames a module or class |
pass |
Does nothing |
break |
Breaks out of a loop |
continue |
Continues to the next iteration of a loop |
True |
A boolean value |
False |
A boolean value |
and |
A boolean operator |
or |
A boolean operator |
throw |
Throws an error |
include |
Imports a module |
else if |
Runs the code in the else if block if the condition is true |
catch |
Runs the code in the catch block if the code in the try block fails |
func |
Defines a function |
null |
A null value |
in name < "What is your name?" | (args) | (type) |
Asks the user for input and stores it in the variable name |
out < "Hello World" | (args) |
Prints the text to the console with the given arguments |
public main() |
The main function that runs when the program starts |