-
Notifications
You must be signed in to change notification settings - Fork 1
Extra Info
-
The debug mode is completly revamped and now it is more easy to use. but harder to understand for new users
-
The debug mode now has a new command
-debugwhich will print out the current debug mode, you use this command by runningversace -debug -
This mode will do a self test to make sure everything is working correctly
-
You can also use this while running a file like this
versace file.v -debug -
The music is now broken, but it will be fixed in the next update
-
The music is broken because of the new way versace handles files
-
You can now make functions with either
funcorpublic -
Example:
func say_hi() {
out < "Hello, my name is Jhon" | red
}- You can also use
publicinstead offunc - Example:
public say_hi() {
out < "Hello, my name is Jhon" | red
}- Using
;does not work like in python, it does NOT run everything in the line asynchronusly, in versace it will split each statement between;and run them line by line, meaning you can create a variable and use it in the same line. - Example:
var a = 1; var b = 2; var c = a + b; out < c;- You can use
;at the end of lines, and it will not cause any errors. - Example:
var a = 1;
var b = 2;
var c = a + b;
out < c;- You can end lines with
}, it would look like this:
public main() {
out < "Hello World!" < red < newl; }- You can have multi-line statements with
;, it would look like this:
public main() {
out < "Hello World!" < red < newl; out < "Hello World!" < red < newl
}-
You can not have more then 1 spcae after the
; -
If you want to use
//in a statement, you have to use////instead as other wise it will dissapear, it would look like this:
public main() {
out < "I am using //// in a statement" < red < newl // this is a comment
}-
That would output
I am using // in a statement -
You can use any python code in versace,
BUTyou have to replace the:and put{and}around the code, it would look like this:
def main() {
print("Hello World!")
}- You can also use
;to end lines, it would look like this:
def main() {
print("Hello World!"); print("Hello World!")
}- 2 more examples:
def main() {
for i in range(10) {
print(i)
}
}def main() {
for i in range(10) {
print(i); print(i + 10202)
}
print("Hello World!")
}NOTE: You can not use : in Versace code
NOTE: You can use ; in strings and comments, but not in statements as it stands for end of line
- You can do this with
;:
public main() {
out < "Hello World!"; out < "Hello World! Again"
}- You can also do this with
;:
public main() {
out < "Hello; World!"; out < "Hello; World! Again"
}- But you can not do this with
;:
public main() {
out < "Hello World!"; < red; // Notice the 2 `;`'s here
}-
this will not work as it will think that the
;is the end of the line and will give you an error. -
You can debug your code by starting it with
-debug, it would look like this:
versace "file.v" -debug- it can also generate a dmp file
- You can use
-mto play music, it would look like this:
versace "file.v" -m- You can use
-dto decompile the versace code to python, it would look like this:
versace "file.v" -d- If you are having poor performance with the versace.exe or the packeged file for linux, you can use the versace.pyc file, it would look like this:
python3 versace.pyc "file.v"- it also has the same flags as the versace.exe and the versace file for linux
- You can use
-helpto get help, it would look like this:
versace -help- You can use
-versionto get the version, it would look like this:
versace -version- Do mind all these commands can be used with the versace.pyc file as well
Copyright © 2022 Dhruvan Kartik