BP Scripting language module.

BlitzMax Forums/BlitzMax Programming/BP Scripting language module.


Is MicroC a language idea of you?


Not really so much an idea as an evolution, it just grew out of my requirements for the RPG engine I was designing (now ported to C#).


I can't understand how to create a so complex language without EBNF. I must use regular expressions yet for a simple lexer :)


Its quite simple really, all you have to do to convert the script to a tokenized format is to go through each character in the script at a time and create a token for it or parse the script further in the case of 1+ charcter keywords, identifiers and literal values. Just look at the bottom of the compiler.bmx file, all the lexing stuff is implemented there.


Hmm, typeless is a quasi standard of such scripting languages


True, I just couldn't think of features to put in a list >_>.


Is there chance to program a compiler for machine code? I have a small handheld here and there is no high level compiler for it. Only a assembler.


Possible, though would require some major restructuring, as the language's compiler, lexer, parser and code emitter are all stored in the same class and are pretty in-interchangable as it wasn't designed for multiple back/front ends in mind. For something like that starting from scratch would probably be a good idea, it's quite easy to get a simple language up and running in a few days once you get the hang of it.