Difference between revisions of "LavishScript"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
** Object Methods
 
** Object Methods
 
* [[LavishScript:Data Sequences|Reading and Writing Data]]
 
* [[LavishScript:Data Sequences|Reading and Writing Data]]
** [[LavishScript:Data Types|Object Types]] (also known as data types)
+
** [[LavishScript:Object Types|Object Types]] (also known as data types)
 
** [[LavishScript:Top-Level Objects|Top-Level Objects]]
 
** [[LavishScript:Top-Level Objects|Top-Level Objects]]
 
** [[LavishScript:Variables|Variables]]
 
** [[LavishScript:Variables|Variables]]
Line 32: Line 32:
 
* [[LavishScript:Modules|Modules]]
 
* [[LavishScript:Modules|Modules]]
 
* [[LavishScript:Developing Commands|Developing Commands]]
 
* [[LavishScript:Developing Commands|Developing Commands]]
* [[LavishScript:Developing Data Types|Developing Data Types]]
+
* [[LavishScript:Developing Data Types|Developing Object Types]]
 
* [[LavishScript:Developing Top-Level Objects|Developing Top-Level Objects]]
 
* [[LavishScript:Developing Top-Level Objects|Developing Top-Level Objects]]
 
* [[LavishScript:Discussing|Discussing LavishScript]]
 
* [[LavishScript:Discussing|Discussing LavishScript]]

Revision as of 04:15, 23 February 2006

Overview

LavishScript is a command shell and fully-featured scripting engine. Its goal is to be an easy to learn (very few syntactical rules, as few operators as possible, and so on) command-based language. It is object-oriented and strongly typed.

LavishScript is designed with the idea that most scripting languages munge too many extra rules and operators to do different things. We believe that simplicity is key. Not necessarily simplicity in the range of available functionality, but simplicity in the structure of the language itself. The complete syntax for commands and data sequences is defined here. Script structure is also quite simple, and is defined here.

LavishScript is generally designed with non-programmers in mind (though logical thinking helps...). LavishScript isn't meant to be a replacement for other general-purpose languages, it is simply meant to be easy to use. If a "real" programming language is what you're looking for, maybe you should be using one instead of a scripting language, right? Most simple tasks can be completed with minimal research, but of course developing scripts will require some learning.

LavishScript allows any number of persistent scripts simultaneously, each of which are given a time slice per "pulse". Pulse timing is defined by the application (such as Fury or Inner Space), so each pulse may be defined as once per frame in a game (as in frames per second), or may simply be as soon as possible after the previous pulse, or can be distributed evenly at specific intervals. The priority level, dictating how much of a time slice is given per pulse, for a script may be set using the Turbo command.

Internally, LavishScript uses C++ objects to perform the scripting duties. By design, every command takes the same form as a standard C console application (i.e. int main(int argc, char *argv[])), as does every built-in variable (called Top-Level Objects) to a lesser extent. This means that developing a LavishScript module is just as painless as developing a console app.

Basics

LavishScript encompasses these basic parts

Development

See Also