Posted by: staticvoidlol Jan 8 2013, 04:04 AM
Hi there,
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
}
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
Posted by: 280Z28 Jan 8 2013, 08:34 AM
QUOTE(staticvoidlol @ Jan 8 2013, 04:04 AM)

Hi there,
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?
The ANTLR language module is an independent product. It provides an editor for people creating their own lexer and parser grammars (generally not for UnrealScript), and that's about all.
Sam
Posted by: staticvoidlol Jan 10 2013, 01:10 AM
QUOTE(280Z28 @ Jan 8 2013, 08:34 AM)

QUOTE(staticvoidlol @ Jan 8 2013, 04:04 AM)

Hi there,
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?
The ANTLR language module is an independent product. It provides an editor for people creating their own lexer and parser grammars (generally not for UnrealScript), and that's about all.
Sam
Ah ok I get it. Thanks for the response.