Well, I've run into a problem.
I'm trying to build a parser (I've made a few topics about it here before, but this is very different from those) for a scripting language.
This scripting language is called JASS. It is an incredibly limited scripting language, built into the game Warcraft III.
What this parser does, it take special keywords (and such), and put things into a script file (which already contains hundreds of lines of the JASS language) based on those keywords.
I feel the need to offer a better suggestion, so here is one.
The language isn't Object Oriented, and some people like structs. So for this new language the parser will parse, I'll be adding structs. What's this does, is look for two specific keywords (struct, endstruct), and parse the output based on the contents. The contents can be variable, or methods (functions).
Variables become global arrays (with the array index becoming the instance of the struct), whereas methods become functions with a long string attached to the beginning so you must create an instance of the struct to call the method.
This is just a bare basic explaination of one of the very basic features I'll be adding.
But the point of this thread isn't to annoy you with explainations.
I have two problems. First, I need to decide on a programming language to use.
I was going to use C, but someone else had wanted to help with the project (it's a huge project), but only knew C++, but I personally find C++ to be to complicated for me to learn at the moment. So I had thought about Python, but due to the fact it's interpreted, it wouldn't work. I was also considering C# or Visual Basic, but this program needs to work on Windows, Linux, and Mac computers.
So I need a programming language, which is fast, runs natively on Mac, Windows and Linux, has powerful and simple file operations, and has a lot of documetation.
My second question would be this: What is the best way to define the new language for the parser?
I'd very greatly appreciate any kind of help. This project is very important to me, and I want to make sure it's done as efficently as possible.
Bump.
Because I don't know how to compile it, and make it 100% cross platform.
That's a bit of a problem for me, honestly. This needs to run 100% natively, and not need any third-party framework/layer (like .net and Python).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks