Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Getting uc file class members, Getting class members from a file in C#
staticvoidlol
post Jan 8 2013, 04:04 AM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 8-January 13
Member No.: 6,550



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




Go to the top of the page
 
+Quote Post
280Z28
post Jan 8 2013, 08:34 AM
Post #2


Pixel Mine Developer
Group Icon

Group: Pixel Mine
Posts: 364
Joined: 29-May 08
Member No.: 1,453



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
Go to the top of the page
 
+Quote Post
staticvoidlol
post Jan 10 2013, 01:10 AM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 8-January 13
Member No.: 6,550



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th October 2017 - 10:14 AM