Hey guys I'm working with a custom scripting language and I am making a sort of IDE for this language in C#. In this language the functions are defined like this:
yourfunctionhere(possiblepararmhere)
{
yourcodehere;
}
I've been trying to figure out the best way to get a list of all the functions via regex and couldn't find a working way to get a list of all the defined functions. Could somebody tell me of a better way or a way to do it with regex? Thanks a lot!
EDIT:
Would something like this work in C#? %[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-z_0-9./(!]++)[~;]