Extracting Functions,Globals,Constants,etc

BlitzMax Forums/BlitzMax Programming/Extracting Functions,Globals,Constants,etc

kfprimm(Posted 2005) [#1]
Does anyone have some code that will extract Functions,Globals,Const,Types,Methods, things like that from a .bmx file?

[Edit]
Actually i need to extract all that from a module
[/Edit]


Tom(Posted 2005) [#2]
Check the .i files that reside in a modules folder, I think they list most, if not all, of the info you want.

Note the '-' and '+' before some names, one denotes a Type Method, the other a Type Function, though I can't remember which way around it is :) I think '-' is Method.


kfprimm(Posted 2005) [#3]
ok...thank you..that'll help one part but also need to be able to extract them from a bmx file also. Sorry if i was unclear


Robert(Posted 2005) [#4]
Hi, I wrote a utility to scan a source file and identify required modules. Part of this program involved scanning a .bmx source file and making a list of all the symbols it contained (ie. funcs, globals, types, methods etc.)

This may not be complete for your needs. The relevant stuff begins with the extractSymbols function in modscanner.bmx (the main source file)

modscanner.bmx


map.bmx




kfprimm(Posted 2005) [#5]
Thank you so much.....i should be able to get what i want from this.