Skip to content

ProtoScript is a C reimplementation of an ECMAScript 1 core, designed as a minimal, embeddable scripting language.

License

Notifications You must be signed in to change notification settings

ppyne/ProtoScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtoScript

ProtoScript

ProtoScript is a C reimplementation of an ECMAScript 1 core (almost JavaScript 1.3), designed as a minimal, embeddable scripting language.

It is a standalone command-line interpreter and does not target browsers, the DOM, HTML, or any client-side runtime.

The engine uses a glyph-based Unicode model (UTF-8), not UTF-16.

ProtoScript does not aim for modern JavaScript or browser compatibility.

Manifest

Prototype-Based Languages: A Different Way to Think

Demo

You can test ProtoScript immediately thanks to a demo running on the web via WebAssembly (compiled with emscripten):

Try it now: ppyne.github.io/ProtoScript/

Documentation

Build

No external dependencies are required.

make

Tests

make test

Examples

Run an example:

./protoscript examples/hello.js

Usage (file or stdin):

./protoscript script.js
cat script.js | ./protoscript
echo 'Io.print("Hello world\n");'| ./protoscript
./protoscript < script.js
./protoscript - < script.js

Other examples:

  • examples/basics.js
  • examples/arrays.js
  • examples/strings.js
  • examples/objects.js

About

ProtoScript is a C reimplementation of an ECMAScript 1 core, designed as a minimal, embeddable scripting language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages