Coder Profile - Show off your skills, get a coder profile.
 
 
 
  
Posted: 3.67 Years Ago 

mikeMarek
Canada
Contrib Level: 5
Total Posts: 151
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

Cheers,
-Mike
Posted: 3.67 Years Ago 

Yuripro84
United States
Contrib Level: 10
Total Posts: 1,132
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.

-Chris
Posted: 3.67 Years Ago 

otoom
United Kingdom
Contrib Level: 7
Total Posts: 500
Yes this sounds very nice.
And haha, yhyh x-Mas is quite soon to be quite fair.

Anyway good luck mate.!.

Ant
Posted: 3.67 Years Ago 

mikeMarek
Canada
Contrib Level: 5
Total Posts: 151
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
Posted: 3.67 Years Ago 

gunni
Germany
Contrib Level: 7
Total Posts: 412
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)?
Posted: 3.67 Years Ago 

VBAssassin
United Kingdom
Contrib Level: 17
Total Posts: 5,730
What makes your language unique? As in what breaks it apart from all the other languages out there?

All this
QUOTE:  Remove Scroll Bars
- 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?

Kind regards,
Scott
Posted: 3.67 Years Ago 

mikeMarek
Canada
Contrib Level: 5
Total Posts: 151
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:
CODE: Copy / Restore  ::  Remove Scroll Bars
  1. import myFunctions
  2. | import user-defined functions in seperate file
  3. | BTW these pipe-symbols are comments :P
  4.  
  5. define $name[String] = ?
  6. | create a variable called "name" with an undefined value
  7. | variables might be PHP-style : still thinking of trying some other symbol
  8.  
  9. display("What is your name?")
  10. | display a message
  11.  
  12. input($name)
  13. | get user input and store in variable $name
  14.  
  15. display("Hello " + $name + "! I'm an automated message! :)")
  16. | display user's name along with a message
If anyone wants to help me make up a new name instead of "MangoScript" if it causes some controversy please don't be shy!

Cheers,
-Mike
Posted: 3.67 Years Ago 

VBAssassin
United Kingdom
Contrib Level: 17
Total Posts: 5,730
I quite like the name "MangoScript"

Using the pipe symbol for comments is awkward to type on my keyboard. Not used to typing it and it seems weird.

How are you doing multiple line comments?

Kind regards,
Scott
Posted: 3.67 Years Ago 

MorbidMorvick
United States
Contrib Level: 2
Total Posts: 24
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...
Posted: 3.67 Years Ago 

mikeMarek
Canada
Contrib Level: 5
Total Posts: 151
@ 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:
CODE: Copy / Restore  ::  Remove Scroll Bars
  1. function myFunctionName(parameters) [
Posted: 3.67 Years Ago 

mikeMarek
Canada
Contrib Level: 5
Total Posts: 151
@ 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:
CODE: Copy / Restore  ::  Remove Scroll Bars
  1. function myFunctionName(parameters) [
  2.        | insert code here
  3. ]
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.

Cheers,
-Mike
Page of 3 :: Next Page >>
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved