Please excuse me if this is an absolute noob question, but I've set up a C# project using the ANTLR language module as references
and I'm a bit stuck on how to proceed.
What I would like to know is if its possible to load an Unrealscript class file and use the lexer and parser to find all members of that class?
E.g. suppose the Unrealscript class is as follows:
CODE
class Test extends Actor;
var public float MyFloat;
var public float MyInt;
function Function1()
{
}
function Function2()
{
}
defaultproperties
{
MyFloat=12.0f
MyInt=1
}
var public float MyFloat;
var public float MyInt;
function Function1()
{
}
function Function2()
{
}
defaultproperties
{
MyFloat=12.0f
MyInt=1
}
How would I go about it in C# to get a list of the variables and a list of the functions contained in this class?
The reason for this is that I want to write a C# tool that generates Unrealscript code for save and load functionality.
I hope I've managed to explain my question well enough.
Best Regards and thanks for NFringe, it's really helped a lot.
staticvoidlol