Jump to content
  • Advertisement
Sign in to follow this  
derek_of_bodom@hotmail.com

Unity I'm currently working on a C-Like scripting language.

This topic is 2524 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Like the title states, I'm working on a scripting language. It's actually going to be very much like C, but I'm leaving out certain things. The language is going to give the programmer control, and there's not going to be any garbage collection. There will be structs, but functions will not be allowed in them. Macros are also supported, and they work great. I was just wondering what kind of things you would like to see in the scripting language, and I'd also like to answer any questions anyone might have.
The current stage of development is the compiler for the scripts. The tokenizer is nearly 100% complete, and will just need to be debugged a little bit, then I'll start working on parsing statements from the tokens, then I plan on mapping out the opcodes so I can make a virtual machine with C or C++. I also plan on releasing the full source code to anyone that wants it, free of charge, no license or anything. I like giving to the community, and I think I can trust that my work won't be stolen for profit.

Share this post


Link to post
Share on other sites
Advertisement
That's awesome!

Most new programming languages is aimed more towards beginners (like Python and Lua) so, this might be a good refresher!

I like the C-syntax so I'll probably take a look at it as soon as it's complete!

Share this post


Link to post
Share on other sites
Yeah, it's cool to have scripting languages for beginners and such, but there aren't too many out there that give you the kind of control that C/C++ gives you. I'm not saying I know everything there is to know about other scripting languages, all I know is that the one I've been working on is aimed at programmers, not scripters.

Share this post


Link to post
Share on other sites
You haven't defined "control".

What control do you think that Lua or Python lacks? Note that I do not think either language is particularly beginner oriented, they just happen to be considered "beginner friendly" because they are harder to break than C or C++. Both feature closures, which make it really nice to do callback stuff (one of my primary uses for scripting).

Lacking garbage collection would also be a huge setback for me. I use scripting languages to reduce my workload and make rapid iteration easier. Having to manually manage memory would be a detriment to this goal.

Share this post


Link to post
Share on other sites

You haven't defined "control".

What control do you think that Lua or Python lacks? Note that I do not think either language is particularly beginner oriented, they just happen to be considered "beginner friendly" because they are harder to break than C or C++. Both feature closures, which make it really nice to do callback stuff (one of my primary uses for scripting).

Lacking garbage collection would also be a huge setback for me. I use scripting languages to reduce my workload and make rapid iteration easier. Having to manually manage memory would be a detriment to this goal.


The control of the memory is the main point of my scripting language. It's basically going to be something like C, just in a scripting language. I'm mostly making it for a game engine that I'm working on, but I'm nice enough to let others use it as well. I'm definitely not trying to compete with any other scripting language, but I am hoping to target people that want a scripting language that doesn't dumb down the syntax.

Share this post


Link to post
Share on other sites
there is a reason many scripting languages are weak typed ("dumbed down is not an accurate description). Scripting languages are most often use to promote rapid iteration (as mentioned previously) as well as to allow artists to write some of the game play revolving around their art, without bothering the programmers who are often tied up with more intricate stuff.

I simply do not see the advantage of using a scripting language with a c-like syntax.

Share this post


Link to post
Share on other sites

I simply do not see the advantage of using a scripting language with a c-like syntax.

Leaving aside the question of 'c-like syntax', there certainly is a market for statically-typed languages, even for scripting. Consider how common it seems to be to choose C# over JavaScript for scripting Unity.

Share this post


Link to post
Share on other sites

The control of the memory is the main point of my scripting language. It's basically going to be something like C, just in a scripting language. I'm mostly making it for a game engine that I'm working on, but I'm nice enough to let others use it as well. I'm definitely not trying to compete with any other scripting language, but I am hoping to target people that want a scripting language that doesn't dumb down the syntax.

I don't really understand. If you want the syntax and "control" of C... why not write the game logic in C?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!