Tuesday, February 26, 2002

Rigi C-Language Parser The Rigi C-Language Parser
The Rigi C-language parser is designed to extract entities and the relationships between entities from files of C source code. Currently the entities that the parser extracts are C functions and C structure definitions. The relationships that the parser extracts are function calls between function entities and data references between function and data structure entities. The parser represents these relationships as RSF (Rigi Standard Format) 3-tuples and writes them to the standard output. The parser also extracts other attributes of the entities, such as their type (either Function or Data) and the line number in the source code file that they were extracted from. For example, if we had the two functions given below in main.c, the RSF generated would look something like the following.