Join Today
+ Reply to Thread
Results 1 to 2 of 2
Like Tree3Likes
  • 3 Post By redice

Thread: Success port SpiderMonkey (JavaScript engine) for A1200

  1. Default Success port SpiderMonkey (JavaScript engine) for A1200

    Success port SpiderMonkey (JavaScript c engine) shell for A1200.

    SpiderMonkey is Gecko's JavaScript engine written in C. It is used in various Mozilla products, including Firefox, and is available under MPL/GPL/LGPL tri-license.

    see SpiderMonkey - MDC

    Execute the shell (Konsole or telnet to phone):
    # ./js
    js> help()
    JavaScript-C 1.7.0 2007-10-03
    Command Usage Description
    ======= ===== ===========
    version version([number]) Get or set JavaScript version number
    options options([option ...]) Get or toggle JavaScript options
    load load(['foo.js' ...]) Load files named by string arguments
    readline readline() Read a single line from stdin
    print print([exp ...]) Evaluate and print expressions
    help help([name ...]) Display usage and help messages
    quit quit() Quit the shell
    gc gc() Run the garbage collector
    trap trap([fun, [pc,]] exp) Trap bytecode execution
    untrap untrap(fun[, pc]) Remove a trap
    line2pc line2pc([fun,] line) Map line number to PC
    pc2line pc2line(fun[, pc]) Map PC to line number
    stringsAreUtf8 stringsAreUTF8() Check if strings are UTF-8 encoded
    testUtf8 testUTF8(mode) Perform UTF-8 tests (modes are 1 to 4)
    throwError throwError() Throw an error from JS_ReportError
    dis dis([fun]) Disassemble functions into bytecodes
    dissrc dissrc([fun]) Disassemble functions with source lines
    notes notes([fun]) Show source notes for functions
    tracing tracing([toggle]) Turn tracing on or off
    stats stats([string ...]) Dump 'arena', 'atom', 'global' stats
    build build() Show build date and time
    clear clear([obj]) Clear properties of object
    intern intern(str) Internalize str in the atom table
    clone clone(fun[, scope]) Clone function object
    seal seal(obj[, deep]) Seal object, or object graph if deep
    getpda getpda(obj) Get the property descriptors for obj
    getslx getslx(obj) Get script line extent
    toint32 toint32(n) Testing hook for JS_ValueToInt32
    evalcx evalcx(s[, o]) Evaluate s in optional sandbox object o
    if (s == '' && !o) return new o with eager standard classes
    if (s == 'lazy' && !o) return new o with lazy standard classes
    js>
    js> quit()
    #


    Run a javascript file:

    # ./js test.js
    ...
    Attached Files Attached Files
    g4m3rz, amin and liiv like this.
    Embedded linux lover

  2. #2
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    788

    Default

    hope you don't mind.. i'll add this in scribi.. it's an interpreter collection
    LINK


 
+ Reply to Thread

Similar Threads

  1. Native Games ScummVM 0.11.1 A1200/E6 port
    By Lubomyr in forum A1200/E6 Gameloads
    Replies: 95
    Last Post: 07-28-2010, 09:33 AM
  2. Native Games OpenTTD a1200/e6 port
    By Lubomyr in forum A1200/E6 Gameloads
    Replies: 25
    Last Post: 08-22-2009, 06:12 PM
  3. Port Opie to A1200
    By redhat in forum Development
    Replies: 1
    Last Post: 04-14-2009, 06:40 PM
  4. can“t make pc engine install in my a1200
    By omarius in forum A1200 General Chat
    Replies: 1
    Last Post: 02-21-2007, 07:23 PM
  5. Anyone willing to port GAIM to A1200?
    By estrauss in forum Bounty Projects
    Replies: 2
    Last Post: 12-15-2006, 05:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1