I'm working on adding classes to hscript

187 views
Skip to first unread message

Dlean Jeans

unread,
Mar 22, 2017, 2:57:58 AM3/22/17
to Haxe
I've been working on this project for a few weeks now and it's progressing very slowly for that I don't have much time coding every day.
The main idea and the purpose of it is to change how the source script is parsed and interpreted to emulate classes and optimize the scripts for code completion/suggestion (by the Haxe Language Server).
The project has 2 functions to emulate classes: create()` and `classExtends()` which has the same functions as `new` and `extends` keyword, respectively.
It uses regex to modify the scripts before they are executed by the Interp. It's working but has some limitations.
But I was recently suggested to extend the Parser instead so that it would be more robust and can do something thất regex can't do.
It's gonna take, maybe, a few more weeks to finish for the same reason why it's progressing slowly.
I'm gonna study how the Parser works then write an extended Parser which generates.

All I wanna say is, if you wanna help this project to be done sooner, any pull request is welcome.

For those who don't know what hscript is: hscript on GitHub
Link to the project: hscript-plus on GitHub

Zaxebo Yaxebo

unread,
Mar 25, 2017, 3:50:11 PM3/25/17
to Haxe
 Excellent effort. :-)
 Eagerly waiting for the implementation

zax

David Elahee

unread,
Mar 25, 2017, 4:45:35 PM3/25/17
to haxe...@googlegroups.com
Very interested, ftr the mandatory "this" calling for members keeps me from wanting to try but keep us posted about your progresses ! ^_^ \m/



--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.



--
David Elahee


Dlean Jeans

unread,
Mar 27, 2017, 10:58:27 AM3/27/17
to Haxe
Glad that you guys are interested. :D

After forking the hscript repo to extend the Parser and Interp, 
I reimplemented all the features with the AST instead of regex.
I'm now trying my first implementation for the `this` for member fields.
It's kinda breaking the other tests. I'll try to fix it or come up with another implementation.
But I hope it will turn out well and will be done by the end of this week.

See ya!

Dlean Jeans

unread,
Apr 14, 2017, 7:31:00 PM4/14/17
to Haxe
Hey it's me!
So I've been busy for some weeks so I haven't pushed any commits for like 16 days.
BTW did you know there's an unannounced dev branch sitting there for 16 days with all the features (like virtually adding `this`)?
When I have some free time again, I'll test the project by putting it to use by making a game with just scripts and HaxeFlixel.

Question: What do you use hscript-plus for?

Reply all
Reply to author
Forward
0 new messages