hmm how long would it take me and a friend to create out own scripting language?
basicly something to simplify visual basics code so that the coding is more simple and then ofcourse mass produce it and make us filthy stinkin rich!!!! eaven richer than bill gates MUAHAHAHAHAHHAHA no seriously to and in a week when i start it will some of the peeps here be willing to help?
Last edited by DamnNeo; Aug 20th, 2005 at 08:49 PM.
Re: hmm how long would it take me and a friend to create out own scripting language?
If interested, there is a FreeBASIC compiler out there, which is written using the language itself. You might find something useful in the compiler source, and since it is basic it can be readable. Though you need a lot of knowledge to understand how a compiler works.
FreeBASIC is good for one good reason: the syntax is almost identical to QBasic/QuickBasic/Microsoft basics.
Re: hmm how long would it take me and a friend to create out own scripting language?
Makeing scripting languages in VB is fun, tho it does take a while depending on how advanced you want to make it, I just get the basics done first such as Keywords, IF,LOOP,Functions,Subs then you can mabe add some more advanced stuff like GUI support.
if your looking to make a scripting language there are tones and tones of examples out on the net for VB even examples of Real compilers as well. that requite no runtimes. tho compilers are a lot harder then scripting languages.
Many people now seem to use the MSScript control. as you can add extra things and Objects to it. I infact made a small IDE with the VBScript control so it supported GUI. forms and controls, like a VB ENV. But I game up after a while.
anyway I did however make a script Lanuage some time back. never finished it.
All the code is commented and comes with an IDE. no GUI support tho. if you serach on pscode you can also find my other scripting attempts.
Re: hmm how long would it take me and a friend to create out own scripting language?
That's what I said.
And on top of that, it will work fast because it was made on C++, and there are no dependencies. On top of that, you can use Assembly in C++, making certain scripting functions even faster. However, making it in VB, would require VB runtime libraries, and would run slower than VB.
Re: hmm how long would it take me and a friend to create out own scripting language?
I've been working on a scripting tool for about 10 months now, so I can tell you it takes time. My scripting tool will allow you to do anything you can with VBScript and the syntax is Basic but there a difference between my Basic language and VBScript. For example all calls, regardless if they are Sub or Function calls, require you to have the arguments inside parathesis. All arguments are passed by value by default (while in VBScript they are passed by reference). All variables have to be declared before you use them so there is no Option Explicit statement since that is always on. It also have structurated error handling using Try Catch blocks. Arrays are also different and strings are considered to be arrays.
It also comes with a dialog designer so you can create your own dialogs (or Forms) that can be used with the script and you are able to compile the whole script to an EXE (without any run-time dependencies).
The compiler, interpretator, linker and debugger is written in C++ while the IDE itself is made in VB.
OK, this is starting to sound a bit much like an adverticement for my own project so I stop now. But as I said, it takes a long time making a language.
Re: hmm how long would it take me and a friend to create out own scripting language?
Some interesting things: FreeBASIC can have ASM included so it is in pretty equal position to C/C++ in this situatation. The only difference is that the language is easier in some things as it is basic. Though as it is lower level language than VB, it is harder to master and you have to learn how to code in lower level. There are also things that are pretty much a direct copy from C (pointers for an example).
FreeBASIC is open source, so there is nothing to lose if you bother to give it a try.
I bet u need a fusion powered shuttle to reach my place...
Posts
963
Re: hmm how long would it take me and a friend to create out own scripting language?
I've also done one half-way myself, using QuickBasic 4.5.
It can parse mathematical expressions into pure assembly codes. Pretty neat.
I abandoned it half-way anyway, but here are some tips for you to parse math
expression.
First, convert your math expression from infix to postfix. You can use the stack data
structure to do this. If you encounter numbers or variables, continue pushing until you
see an operator. Pop two variables/numbers from the stack and perform that
operation. If you encounter parenthesises that's some other story (I forgot).
Check out "C How to program". They've this example in the data structure chapter.
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline
So I consider all those working engineers sad people
Re: hmm how long would it take me and a friend to create out own scripting language?
if you have now money at the momment and want to have a go at makeing your own scripting lan in C/C++ then I get hold of a freeware compiler. mingw32 is by far one of the best.
you can also get this and a IDE all ready for you. http://www.bloodshed.net/devcpp.html that is a very good IDE as well has loads of features in it.
If you know nothing of C/C++ then I also buy a book before riding into the sunset and makeing your own Lanuage. try Amazon after you got the basics get your seflf a tutor on makeing a scripting Lanuage.
http://groups.yahoo.com/group/QDepartment/
That site above has like a 100 page book on makeing a real scripting lanuage. you will cover quite a bit, it even runs into makeing a Byte Compiler and at the end moves onto a Real Compiler in small detail. but it the scripting Lanuage you will mostley cover tho the book. it not a bad little scripting lanuage as well. a Basic kind.
I brought a book some time back called the Art of C++ that covers makeing a Mini C++ Scripting Lanuage. it's only simple but covers stuff like Variables, Arrays, Loops, If, Keywords,Functions and some FileIO. I read tho the whole book my self and made my little example to support Pointers and Classes. here a link to the book src http://www.osborne.com/products/0072...55129_code.zip
well hope that should get you started.
When your dreams come true.
On error resume pulling hair out.
Re: hmm how long would it take me and a friend to create out own scripting language?
There are like 1000s of tuts for building compilers and scripting lanuages around the net have a look tho google. but the one i provided will show you all the stuff needed to create a full working scripting lanuage.
also you may want to look into .NET VB.NET or C# as the .net framework now supports an very easy way to create almost any kind of scripting or compilers. there is a tutor on the net that shows you have to build full compiler. think it's called lets build a .net compiler not sure. now but if you do a serach in google you will come accross it.
When your dreams come true.
On error resume pulling hair out.