Skip to content

mir597/ml_safe

 
 

Repository files navigation

ML-SAFE

This is a subset of SAFE(http://plrg.kaist.ac.kr) for parsing and traversing ECMAScript 5 code.

Requirements

We assume you are using an operating system with a Unix-style shell (for example, Mac OS X, Linux, or Cygwin on Windows). Assuming JS_HOME points to the SAFE directory, you will need to have access to the following:

In your shell startup script, add $JS_HOME/bin to your path. The shell scripts in this directory are Bash scripts. To run them, you must have Bash accessible in /bin/bash.

Installation

After launching sbt, type antRun clean compile and then compile.

Once you have built the framework, you can call it from any directory, on any JavaScript file, simply by typing one of available commands at a command line. You can see the available commands by typing:

bin/jsaf
bin/jsaf help

Environment variables

$ export JS_HOME={HOME_PATH}
$ export PATH=$JS_HOME/benchmarks/bin:$JS_HOME/bin:$PATH

Run Tests

The following test script will generate a vector file 'result_{benchmark_name}.out' for each benchmarks in benchmarks/cg.list:

$ runs

About

Machine Learning For ECMAScript 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 36.4%
  • C++ 31.2%
  • HTML 16.6%
  • Objective-J 6.0%
  • CSS 5.3%
  • Java 1.8%
  • Other 2.7%