Module: RubyRunJs

Defined in:
lib/ruby_run_js/jsparser.rb,
lib/ruby_run_js/scope.rb,
lib/ruby_run_js/helper.rb,
lib/ruby_run_js/opcodes.rb,
lib/ruby_run_js/version.rb,
lib/ruby_run_js/conversion.rb,
lib/ruby_run_js/operations.rb,
lib/ruby_run_js/interpreter.rb,
lib/ruby_run_js/builtin_context.rb,
lib/ruby_run_js/objects/js_date.rb,
lib/ruby_run_js/objects/js_json.rb,
lib/ruby_run_js/objects/js_math.rb,
lib/ruby_run_js/objects/js_misc.rb,
lib/ruby_run_js/objects/js_array.rb,
lib/ruby_run_js/objects/js_error.rb,
lib/ruby_run_js/bytecode_executor.rb,
lib/ruby_run_js/objects/js_number.rb,
lib/ruby_run_js/objects/js_object.rb,
lib/ruby_run_js/objects/js_regexp.rb,
lib/ruby_run_js/objects/js_string.rb,
lib/ruby_run_js/bytecode_generator.rb,
lib/ruby_run_js/objects/js_boolean.rb,
lib/ruby_run_js/objects/js_function.rb,
lib/ruby_run_js/objects/js_exception.rb,
lib/ruby_run_js/object_methods/js_date.rb,
lib/ruby_run_js/object_methods/js_json.rb,
lib/ruby_run_js/object_methods/js_math.rb,
lib/ruby_run_js/objects/js_base_object.rb,
lib/ruby_run_js/object_methods/js_array.rb,
lib/ruby_run_js/object_methods/js_error.rb,
lib/ruby_run_js/object_methods/js_global.rb,
lib/ruby_run_js/object_methods/js_number.rb,
lib/ruby_run_js/object_methods/js_object.rb,
lib/ruby_run_js/object_methods/js_regexp.rb,
lib/ruby_run_js/object_methods/js_string.rb,
lib/ruby_run_js/object_methods/js_boolean.rb,
lib/ruby_run_js/object_methods/js_function.rb

Overview

the javascript parser is manually translated from esprima.js to ruby. the reference code of esprima.js is from github.com/jquery/esprima/tree/1.0 Note: the parser only supports ECMAScript 5.1

Defined Under Namespace

Modules: ConversionHelper, Helper, JsArrayMethods, JsBooleanMethods, JsDateMethods, JsErrorMethods, JsFunctionMethods, JsGlobalMethods, JsJsonMethods, JsMathMethods, JsNumberMethods, JsObjectMethods, JsRegExpMethods, JsStringMethods, OPCODES, Operation, ScopeHelper Classes: BuiltInContext, ByteCodeExecutor, ByteCodeGenerator, GlobalScope, Interpreter, JsArray, JsBaseObject, JsBoolean, JsDate, JsError, JsException, JsFunction, JsJson, JsMath, JsNull, JsNumber, JsObject, JsRegExp, JsString, JsUndefined, LocalScope, ObjectScope, Parser

Constant Summary collapse

VERSION =
"0.1.0"