Comments (4)
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.
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.
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.
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)
- Variables declared in outer function can not be cached (v1.2) HOT 1
- Variable cannot accessed from a closure function called from `setTimeout`.
- Inner function should be pre-interpreted in all of call-scopes (v1.2) HOT 1
- .net dynamic objects HOT 6
- Consider using a different file extension HOT 1
- Error in Chinese
- Error in array HOT 1
- who can supply 'reoscript.g' file to me?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reoscript.