BlitzMax target?
Monkey Forums/Monkey Programming/BlitzMax target?
| ||
Would it be possible to get a BlitzMax target for Monkey? Hah, and why the hell would I need that, you ask? Simply because it's the only other language I've invested some time in and know reasonably well! :-D (Go ahead, say it: "Noob!") But seriously, aside from Monkey being case sensitive and having some object types that don't exist in BMax, it doesn't seem such translator would be a huge problem, would it? Converting my stuff by hand from Max to Monkey took a long time mostly because of all the non case sensitive stuff in Max wreaking havoc, I wonder how easy would it be to automate going the other way around... Leo. |
| ||
you mean a monkey target... kinda Yes it would be nice, but chances of it happenin'.......ah dunno not much, You could create a program in blitzmax that takes your source and converts it all to lower-case, |
| ||
I would say it would be pretty easy to do, since the syntax is very similar. The issues would be that the BlitzMax code would not be as feature rich as if you have wrote your game in pure BlitzMax, but I guess that is the same with all targets... |
| ||
Hah, and why the hell would I need that, you ask? Exactly. What could you possibly gain from that, other than an utterly pointless exercise in engineering.Monkey is by far the more formal language, and writing a EBNF description of it would probably be a fairly trivial exercise. Writing one for BlitzMAX on the other hand is an absolute nightmare. On top of this, both languages are dynamic, in that they can include modules that introduce new instructions, written in a different language, this kind of thing suddenly turns the language itself surprisingly complicated. |
| ||
it doesn't seem such translator would be a huge problem, would it? I think it would. Monkey has several OO capabilities that do not exist in BM, such as overloading generics and properties. They can be faked (as sort-of are in C++) but, once you've ended with the workaround of all them, it's very difficult to get nice translated code and, well, at the end, it is not very useful... If monkey every gets reflection, it will be superior to BM in everything, except its built in libraries, but this is just a matter of time, IMHO. |