Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Extra Info

Dhruvan edited this page Oct 20, 2022 · 2 revisions

This is Some Extra Info

From Versace 4.1.1

  • 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 -debug which will print out the current debug mode, you use this command by running versace -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 func or public

  • Example:

func say_hi() {
    out < "Hello, my name is Jhon" | red
}
  • You can also use public instead of func
  • 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;

Almost Everything from Versace 4.0.5 will also work in Versace 4.1.1

End of Some Extra Info From Versace Version 4.1.1

From Versace Version 4.0.5

  • 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, BUT you 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 -m to play music, it would look like this:
versace "file.v" -m
  • You can use -d to 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 -help to get help, it would look like this:
versace -help
  • You can use -version to 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

End of Some Extra Info From Versace Version 4.0.5

Clone this wiki locally