Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.49 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.49 KB

LiteScript Documentation

LiteScript

LiteScript is a small scripting engine to embed in C++ applications. Its language looks like JavaScript, with classes, and an assembly language gives access to the engine's instructions.

Writing scripts

  1. Language overview: what you need to know coming from JavaScript
  2. Variables and types
  3. Operators
  4. Control structures
  5. Functions
  6. Classes
  7. Namespaces
  8. Errors
  9. Standard library (if the application has enabled it)

Embedding the engine in an application

  1. Getting started: building the library and running a first script
  2. Integration: application functions, values, errors, saving, memory
  3. .NET: the package LiteScript.Net, wrapper of the engine for C# and the other .NET languages

Running scripts

  • Playground: the litescript-pg program that executes script files with libraries for the console, files, JSON, HTTP and processes
  • Editors and debugging: the Visual Studio Code extension, the language server and the debugger

References