Results 1 to 18 of 18

Thread: hmm how long would it take me and a friend to create out own scripting language?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    111

    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.

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    111

    Re: hmm how long would it take me and a friend to create out own scripting language?

    ok how about just coding my own language using vb6?

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: hmm how long would it take me and a friend to create out own scripting language?

    It would still need VB or the runtimes for it, so it wouldn't really be a new language.

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: hmm how long would it take me and a friend to create out own scripting language?

    Make it in C++. VB was made on it, right?

  6. #6
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    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.

    http://www.eraystudios.com/forum/viewtopic.php?t=14

    also look on http://www.pagemac.com
    thay also do a scripting Lanuage made in VB 6
    anyway hope that helps.
    When your dreams come true.
    On error resume pulling hair out.

  7. #7
    Junior Member
    Join Date
    Aug 2005
    Posts
    18

    Re: hmm how long would it take me and a friend to create out own scripting language?

    do it in c++... it will be independant from any copyrights other that your own

  8. #8
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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.

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.
    Attached Images Attached Images  

  10. #10
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  11. #11
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    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

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    111

    Re: hmm how long would it take me and a friend to create out own scripting language?

    ummm im gonna buy c++ in a bit when i get a few more pay checks so that i can try programing in C++

    btw visual c++ or just c++

  13. #13
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: hmm how long would it take me and a friend to create out own scripting language?

    Visual C++ is a tool, C++ is a language.

  14. #14
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    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.

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    111

    Re: hmm how long would it take me and a friend to create out own scripting language?

    so any more tuts?

  16. #16
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    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.

  17. #17

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    111

    Re: hmm how long would it take me and a friend to create out own scripting language?

    thing is google isnt showing much -__-

  18. #18
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: hmm how long would it take me and a friend to create out own scripting language?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width