Skip to content

UntitledEntity/Scripty-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scripty Interpreter

A simple interpreter for a language I created titled Scripty.

Functions

It has four core math functions, three printing, and three memory-based functions. A full list is available below.

4 math functions

  • ADD
  • SUB
  • MULT
  • DIV

3 printing functions

  • PRINTS - Prints a string which is taken as an arg
  • PRINTF - Prints the value of the line following it
  • PRINTV - Prints the value of a variable by name, which is taken as an arg

3 memory functions

  • MOV - Copies the value of a variable to another variable. If the variable exists, the value will be copied over. If it doesn't, it creates a new variable.
  • SETVAR - Sets a variable by name and has two args, a string of the name, and an integer as the value
  • SETVAR - Sets a variable by name to the value of the expression in the line following and has one arg, a string of the name

1 misc function

  • REPEAT - Repeats a given number of times, taken as an arg.

About

A simple interpreter for a language I created titled scripty.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages