Get the source! »
Feel free to download, use and abuse the script. Because it's derived from the original Narcissus source code the tri-licence remains and you are able to choose from the MPL 1.1, GPL 2.0 and LGPL 2.1 licences, you lucky people.
parse function with three parameters;
line. The first is a
String with the name of the file the script came from and the third is the line to start parsing from.
An example script which makes use of the parser is available: parse.rb. The script accepts two arguments, the first a filename and the second a function name. If the function name is omitted the file is parsed and a list of the functions contained in the file is printed to standard out and if a function name is passed in the source of the function is printed to standard out.
If you encounter anything unexpected please send me a bug report and please include the script or an example which shows the flaw if you are able.
Have at it!