Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Overview

ShockScript is a strongly typed, multi-paradigm scripting language.

Note: The document is a work-in-progress, and may lack content.

E4X

ShockScript is mixed with the eXtensible Markup Language (XML), based on the legacy ECMAScript for XML (E4X) extension. It is, in addition, suitable for implementing reactive UI components.

For the Whack Engine, E4X literals create WhackDS nodes by default.

Events

ShockScript incorporates a basic event model and allows easily declaring event types and documenting them. Implementations may extend the event model for working with a Document Object Model.

ESDoc comments

ShockScript supports documentation comments allowing for Markdown notation, special tags such as @throws and media inclusion.

Abbreviation

ShockScript is often abbreviated as ES or ES4 since it looks like the non-existing ECMAScript 4th edition. The conventional ShockScript file extension is .es.