Skip to content

MG-Corp/MScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MScript

Simple syntax-based scripting language.
v2.0

Documentation

Printing

There are two versions of print: println and print.

  • println Automatically prints a value on a newline
  • print Prints very value on the same line

Try-Exceptions

  • You do not need to add a specific exception type in a try-except statement. You just have to write except:

Multiprocessing

MScript offers a way to do simple threading natively; use parallel(func, args)

Other

MScript is extremely similar to Python in syntax and features; however, there are some differences:

  • def -> func
  • and -> &
  • or -> |
  • match -> switch
  • enumerate -> enum
  • True -> true
  • False -> false
  • ** -> ^
  • None -> none
  • raise -> r+
  • -> -> >>
  • += -> ++
  • -= -> --
  • *= -> **
  • /= -> //