Zoxc/legion — Issue #1: How to enumerate names and their signatures
Author: midiway
Created: 2012-02-03 02:06:57+00:00
State: open

I saw that in the project source there is a "c_api.h" file which is a C interface that I could use in my own application, that is great. But it only has functions to parse a given string of galaxy code and get the result of the parsing and of any error that has ocurred.

One feature that I would like to have is the ability to enumerate every name that was found in the galaxy source code and also on its included files + their signatures, that is, I want to know every function and every global variable that was found, its signature, in case of functions, and its declaration type, in case of globals.

Is there any way I could grab this information from the internal data model of your parser? if you tell me for example that in the Legion::Document class there is a list of nodes at the root level, I could write something to grab this information. thks