Original Post
Hello,
I would like to have some text files with a basic grammar in order to define objects, etc... from this files. The thing is that I would like to make something abstract to not hardcode every keyword, etc... to use in differents modules, like particle systems (it will have its own grammar), objects creations (its own grammar too), etc...
Is there anyway to abstract things this way? any way to templatize?.
I think that what I need is a configurable lexer/semantic analizer that when detects a correct stament just like for example:
Object_Definition "Ghoul" { Set energy=100;};
call in my C object loader something like:
ObjectMgr->CreateEntity("Ghoul");
ObjectMgr->SetProperty("energy",100);
or something like that
could anybody give any tip pls?
NOTE: make a VM/complete script system is too dificult and time consuming for me know, so it is not an option.
Thnx in advance.
HexDump.