I wrote a scripting engine once but it was a bit of a mess because I skipped the intermediate level of compilation.
With .Net you can just compile C# code on the fly that runs equally as a fast as the code which compiled it, compile times for .Net are incredibly fast as well (because it only has to compile to CLI.) The .Net framework virtually ships with a scripting engine - at least reflection makes it seem like such. That's one of the reasons it's so powerful.
So while I encourage what you're doing, I would do it w\ a language that doesn't rely on a framework that carries around a compiler where-ever it goes (if you aren't already.)
Another idea is to write it so that it supports the compact .net framework, because that framework doesn't support reflection as well or on the fly compiling.
But for my engine, I have a 'scripts' precompiled to assemblies. So that it would be compiled directly into CLI - so runtime analysis & compilation wasn't required.
Thanks for the suggestions. At first, I planned to use CodeDom, but it has so many limitations including no support for aliasing and nested namespaces, variable declaration list, readonly modifier, unary expressions etc. CodeDom doesn't provide some functionality I would like to have in my language. And unfortunately, at this stage, I have to rely on .NET framework. If this went successful, I would switch to C++ which would make it pretty much independent ;]
---Thanks everyone for support
Jason: You still mad nigga. <3
I support you in anything you do, although I can't help you with the coding
Originally Posted by Ravallo
I support you in anything you do, although I can't help you with the coding
Thanks Boy. Much <3
Looks shitty. Probably only GUI(no coding) - voted no ofc.
nah, already wrote db functions, gotta write some moar for you ^^
Originally Posted by Blubb1337
Looks shitty. Probably only GUI(no coding) - voted no ofc.
nah, already wrote db functions, gotta write some moar for you ^^
Fuck, both used white font. With high brightness, I can't even see that with out selection -.-
Originally Posted by Hassan
Fuck, both used white font. With high brightness, I can't even see that with out selection -.-
That's the point captain obvious.
Originally Posted by Blubb1337
That's the point captain obvious.
I see.
Originally Posted by Insane
One question.
What did you code the compiler with
Visual Basic. ^_^
@master131 FU, Hassan is an epic coder.
Off topic:
I really don't want to leave. So the fucker that -Repped me can fuck him/her self.
Originally Posted by Play&Win
Visual Basic. ^_^
@master131 FU, Hassan is an epic coder.
Off topic:
I really don't want to leave. So the fucker that -Repped me can fuck him/her self.
Umm, actually he is right. There is no ASM support in vb.net but it was supported in VB 6 using some dll (can't remember the name). So, there might be a solution to make it work in vb.net too. Not sure ofc
Originally Posted by Hassan
Umm, actually he is right. There is no ASM support in vb.net but it was supported in VB 6 using some dll (can't remember the name). So, there might be a solution to make it work in vb.net too. Not sure ofc
If you want I can make some little researches. IDK if they're going to help, but I really need to find a way to support u as much as possible.
Originally Posted by Play&Win
If you want I can make some little researches. IDK if they're going to help, but I really need to find a way to support u as much as possible.