Giter VIP home page Giter VIP logo

Comments (4)

jingwood avatar jingwood commented on June 11, 2024

Thank you Ryan.

srm.compile parses the script of text and try to construct a syntax-tree in memory, actually the syntax errors has been detected and stored in the syntax-tree (finished by ANTLR). Currently there is no API available to retrieve these errors. I will fix this ASAP.

A runtime error like 'aa.bb.cc = 5' where 'bb' is null, the exception can only be thrown at runtime. (maybe in future we can detect that an object may always be null at compile-time)

For the variables collecting, I will add an API to iterate all the variables (and functions) used in script. Just like Reflection in .NET.

Hope useful for your email processor.
And I planned to release next version within one week.
Jing Lu

from reoscript.

prgrmRyC avatar prgrmRyC commented on June 11, 2024

Jing,

Thanks for the quick reply. You’ve done a great job on ReoScript. I have tried many different addon script LIBs and although I like a few of them like csScript, I think ReoScript is cleaner and easier to understand, plus I think my users will know Javascript before C#, Lua, Pearl, etc.

By the way, since you so graciously include the source code, I added a simple function to SRM that returns an array of variables from WorldObject, minus the built in ones.

I look forward to your updates. Once I get this app released, I will gladly add a ReoScript icon and link to your site from mine.

Thanks
-=Ryan

From: Jing Lu
Sent: Monday, June 10, 2013 9:56 PM
To: unvell/ReoScript
Cc: prgrmRyC
Subject: Re: [ReoScript] Compiling a script does not display errors (#3)

Thank you Ryan.

srm.compile parses the script of text and try to construct a syntax-tree in memory, actually the syntax errors has been detected and stored in the syntax-tree (finished by ANTLR). Currently there is no API available to retrieve these errors. I will fix this ASAP.

A runtime error like 'aa.bb.cc = 5' where 'bb' is null, the exception can only be thrown at runtime. (maybe in future we can detect that an object may always be null at compile-time)

For the variables collecting, I will add an API to iterate all the variables (and functions) used in script. Just like Reflection in .NET.

Hope useful for your email processor.
And I planned to release next version within one week.
Jing Lu


Reply to this email directly or view it on GitHub.

from reoscript.

jingwood avatar jingwood commented on June 11, 2024

Ryan you're welcome! I am also gladly add your link back:)

I just released the version 1.3 that contains the compile-time error handling and API to get all the functions and variables defined in script. Sorry for a method to SRM that returns an array of variables from WorldObject is not added at this time, please keep using your own method for several days, I will add it in next version.

About error handling please refer to this document:
https://github.com/unvell/ReoScript/wiki/Error-Handling

And reflection is here:
https://github.com/unvell/ReoScript/wiki/Reflection

If you have other problems, please let me know.
Thanks for a good suggestion again!

from reoscript.

prgrmRyC avatar prgrmRyC commented on June 11, 2024

Cool than Jing! I will send you an icon to post when I am ready.

-=Ryan
www.rynamix.com

From: Jing Lu
Sent: Monday, June 17, 2013 12:25 PM
To: unvell/ReoScript
Cc: prgrmRyC
Subject: Re: [ReoScript] Compiling a script does not display errors (#3)

Ryan you're welcome! I am also gladly add your link back:)

I just released the version 1.3 that contains the compile-time error handling and API to get all the functions and variables defined in script. Sorry for a method to SRM that returns an array of variables from WorldObject is not added at this time, please keep using your own method for several days, I will add it in next version.

About error handling please refer to this document:
https://github.com/unvell/ReoScript/wiki/Error-Handling

And reflection is here:
https://github.com/unvell/ReoScript/wiki/Reflection

If you have other problems, please let me know.
Thanks for a good suggestion again!


Reply to this email directly or view it on GitHub.

from reoscript.

Related Issues (9)

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.