Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ecmascript 5 rewrite of Narcissus
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
jsdefs.js
jsexec-es5.js
jsexec.js
jslex.js
jsparse.js
test.html

README.md

Narcissus-ES5

This is an interpreter rewrite of the original Narcissus js-js interpreter created by Brendan Eich.

Implementation Status:

  • Basic Object Functions like [[Get]] , [[Call]] or [[HasInstance]] are implemented
  • The Objects 'String', 'Number', 'Object', 'Function' and 'Boolean' are defined
  • assignment without a previous var declaration works
  • typeof, instanceof
  • calling native functions
  • getting properties via Dot (.) or Brackets ([])
  • string literals, null literal, undefined literal, number literal, object literal
  • strict mode partially done
  • function and var definitions

ToDo:

  • implement all functions of the object like String.fromCharCode, Object.getPrototypeOf
  • implement Error Objects
  • all operators like + - * /
  • [[DefineOwnProperty]] Reject Method
Something went wrong with that request. Please try again.