Sirtaj Singh Kang <taj@kde.org>, Dec 1998.
Returns a raw line read from the current input file. This is used by routines outside main, since I don t know how to share fds.
Reads a C++ source line, skipping comments, blank lines, preprocessor tokens and the Q_OBJECT macro
Reads a C++ code block (recursive curlies), returning the last line or undef on error. Parameters: none
Returns a declaration and sets the $declNodeType variable. A decl starts with a type or keyword and ends with [{};] The entire decl is returned in a single line, sans newlines. declNodeType values: undef for error, "a" for access specifier, "c" for doc comment, "d" for other decls. readCxxLine is used to read the declaration.
Return a root node for the given type of input file.
Parameters: decl Identifies a declaration returned by readDecl. If a code block needs to be skipped, this subroutine returns a 1, or 0 otherwise.
Reads the parameters of an enumeration. Returns the parameters, or undef on error.
Parameters: name, (ref) params Returns an initialized enum node.
Parameters: type, name, forward, complete, inherits... Handles an IDL structure definition (ie module, interface, exception).
Parameters: tmplArgs, cNodeType, name, endTag, @inheritlist Handles a class declaration (also fwd decls).
Param: inheritance decl string Returns: list of superclasses (template decls included) This will fail if < and > appear in strings in the decl.
Param: namespace name. Returns nothing. Imports a namespace into the current node, for ref searches etc. Triggered by "using namespace ..."
Parameters: realtype, name Handles a type definition.
Params: realtype, name endtoken Creates a new compound type definition.
Parameters: retType, name, params, const, pure? Handles a new method declaration or definition.
Parameters: * method (or enum) node * string containing the whole param list * 1 for enums Adds a property "ParamList" to the method node. This property contains a list of nodes, one for each parameter. Each parameter node has the following properties: * ArgType the type of the argument, e.g. const QString& * ArgName the name of the argument - optionnal * DefaultValue the default value of the argument - optionnal For enum values, ArgType is unset, ArgName is the name, DefaultValue its value. Author: David Faure <david@mandrakesoft.com>
Parameters: access Sets the default "Access" specifier for the current class node. If the access is a "slot" type, "_slots" is appended to the access string.
Parameters: type, name, value New variable. Value is ignored if undef
Display usage information and quit.
Display short version information and quit.
To install Ast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ast
CPAN shell
perl -MCPAN -e shell install Ast
For more information on module installation, please visit the detailed CPAN module installation guide.