Extracting Functions,Globals,Constants,etc
BlitzMax Forums/BlitzMax Programming/Extracting Functions,Globals,Constants,etc
| ||
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] |
| ||
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. |
| ||
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 |
| ||
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 |
| ||
Thank you so much.....i should be able to get what i want from this. |