Home

ofscript

OfScript is a lightweight, embeddable scripting language designed to be integrated into host applications for scripting, configuration, and automation. Its goal is to provide a small runtime, straightforward syntax, and strong interoperability with host languages, while remaining easy to learn for new users.

Its design combines dynamic scripting with optional static typing, enabling rapid prototyping with the choice of

Execution and interop: OfScript implementations typically provide both an interpreter and a bytecode-compiled variant, optimized for

Syntax: The language uses a C-like syntax with blocks delimited by braces and optional type annotations. Example:

Adoption: OfScript has seen interest primarily in game development, tool automation, and configuration tasks, where embeddability

type
annotations
for
larger
projects.
The
language
supports
first-class
functions,
closures,
and
a
modular
system
for
distributing
code.
It
uses
garbage
collection
and
offers
a
conventional
object
model
with
classes
and
inheritance.
fast
startup
and
short-running
scripts.
It
includes
a
foreign
function
interface
(FFI)
to
allow
calling
into
host
APIs
written
in
languages
such
as
C
or
C++,
and
hosts
can
expose
their
APIs
to
OfScript
through
bindings.
The
standard
library
covers
I/O,
string
processing,
collections,
and
basic
networking;
many
embedders
add
engine-specific
libraries.
func
greet(name)
{
print('Hello,
'
+
name)
}
let
msg
=
greet('World')
and
light
footprint
are
valuable.
Multiple
independent
implementations
exist,
yielding
varied
performance
characteristics
and
ecosystem
maturity.
See
also
scripting
languages
and
embeddable
languages.