Skip to content

machta/js-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-interpreter

A simple JavaScript interpreter for the subject MI-RUN

Usage:
  js-interpreter script.js
  
  Execute without arguments to start the REPL.

Build instructions:

./download-libraries.sh
mkdir build && cd build
cmake ..
make
./unit-test/unit-test

Unsupported language features:

  • var in a for statement: for(var i = 0;;)
  • for-loops with "in"
  • switch statement
  • +=, *=, >>=, ...
  • this
  • new
  • throw, try/catch
  • regular expressions
  • comma expression, template literal (whatever that is...)
  • accessing arrays with negative index
  • property access with square brackets
  • explicit conversion (cast operator)

About

A simple JavaScript interpreter for the subject MI-RUN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published