Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
To do that, you would have to write a 'native function' that took a filename, 
loaded the file into a string, and then called tiny js's execute method on it.

It is quite easy, but there are no built in filesystem access functions

Original comment by [email protected] on 24 Dec 2012 at 4:09

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
thank you .. and is it going to be recursive? because 'native function' is 
going to execute first file but still there is another call inside this file ..

Original comment by [email protected] on 24 Dec 2012 at 6:32

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
It should be, as long as you don't do anything that isn't re-entrant in your 
function.

Original comment by [email protected] on 24 Dec 2012 at 10:17

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
so the native function should be able to fread all the files including inner 
files into a big stream and execute it all at once. correct?

Original comment by [email protected] on 24 Dec 2012 at 10:23

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Dear  marianne,
I just added scCmdCall function into the script.cpp file and also registered 
the native function. inside the scCmdCall function I'm parsing a test file and 
executing the buffer but unfortunately keep getting an error. 
I just attached the modified script.cpp file here. would you please take a look 
at this script and let me know what I'm doing is wrong?

-Roozbeh

Original comment by [email protected] on 25 Dec 2012 at 8:58

Attachments:

from tiny-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.