It's called mangoScript. Why mangoScript? Well, I like mangos
Anyways, I've gotten sick of SOL's stupid syntax and "HTML-like brackets" for different functions and whatnot. So I've begun an epic journey to create a new language! Here's some of the features that it will have:
- comments
- include (import) files
- Multiple variable types (int, string, etc.)
- if/else if/else statements
- for/while loops
- custom functions
- macros (long single-lines of code that can be included with a short keyword)
- many built-in functions and macros
- syntax highlighted code editor (in the works)
Compilation is also easier than SOL. You write a code file and save it as *.mgo (default file extention) and load it into the compiler and it will create an exe window and run your code.
Anyways, I'm hoping it will be all done by around Christmas, so don't expect anything anytime soon
lol, Christmas is pretty soon, considering you're creating a language :P I'm interested to see how this turns out, sounds cool. I never had a chance to check out SOL, but I'll definitely check out what you have to offer in this one.
Well, it's September 19, and Christmas is on December 25, so that gives me about 3 months to get a working compiler. It took me about 2 weeks working 2-3 hours a day to finish SOL. I'm spending about that time now, so for me it seems like quite a generous deadline
Cheers,
-Mike
P.S. My main goal is to be able to make a "number guessing game" out of this when I'm done, so maybe you guys are right
Your language will be mangoScript and have a compiler? Please clear this up..
Anyway, I have no idea of SOL and can't imagine some syntax. Could you give a small example program in mangoScript so I can see what the language will be like? Which paradigms will be covered? Will your script have a specific operating area (like PHP's is web development)?
- comments
- include (import) files
- Multiple variable types (int, string, etc.)
- if/else if/else statements
- for/while loops
- custom functions
- macros (long single-lines of code that can be included with a short keyword)
- many built-in functions and macros
- syntax highlighted code editor (in the works)
Is already present it just about every language out there.
I assume your just doing this for the learning curve and pleasure of coding it?
This language will just be for fun and as VBAssassin said, a learning curve. As for the "script" part and the "compilation" part, I don't know what I was thinking I just liked the name MangoScript and am making a compiler for the script (precompiler and such). Anyways here's a small sample of code in what I want the syntax to look like:
Sounds interesting, I've been dabbling a bit with language design and parser implementations so I have a few questions.
First, as was asked before which paradigms with the language be in or will you be bridging more than one paradigm. The paradigms being functional (LISP, C, Pascal), logical (Prolog), imperative (Java, C++, C#, basically all OO languages).
Second, what type of parser algorithm will you be using LL parse, LR parser, Recursive-descent, or just straight hard-coded string parsing?
Third, I see no function declarations in your example source, and am wondering what they will look like?
Also the comment style and symbol is a little different. Making post expression comments is a bit unconventional but then who said you really need to stick with convention. Will your language support if/for/while block nesting, such as an if block in a while loop, within a for loop within an if block etc...
@ VBAssassin: Any suggestions on a different comment operator? Also, I'm not planning on multi-comments, but if I do feel the need for them then I will be definately adding them.
@ MorbidMorvick: Paradigm? I'm lost As a parser, I will be hard coding all of it (basically a for... loop will run through the code and run through certain actions if it finds a keyword. And here's an example of a function:
@ VBAssassin: Any suggestions on a different comment operator? Also, I'm not planning on multi-comments, but if I do feel the need for them then I will be definately adding them.
@ MorbidMorvick: Paradigm? I'm lost If you mean what language I'm using to make it, I'm using C++ for the language itself and hopefully Java for the text editor. As a parser, I will be hard coding all of it (basically a for... loop will run through the code and run through certain actions if it finds a keyword. And here's an example of a function:
Select what you want to copy and in doing so you will keep the formatting when pasting it.
As for nested loops, statements, etc., that is what I'm shooting for, but I'm not quite sure how I will be doing it h well, I haven't reached that point yet :P I'm still working on variable declarations and storing values.
You do not have permission to post replies to topics in this board. If you want to join in with discussions and create new topics please register. If you want to register your own free account with us, please click here.