Help - Search - Members - Calendar
Full Version: Getting uc file class members
Pixel Mine Forums > Pixel Mine Development Tools > nFringe for Visual Studio > Bugs & Technical Issues (ANTLR language module)
staticvoidlol
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




280Z28
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
staticvoidlol
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2021 Invision Power Services, Inc.