Skip to content

Commit 12e38b9

Browse files
Matthias Kastnert-b
authored andcommitted
regex parsing
Results of parsing are continuosly appended to a list (decl and line). caveat: parsing time is increased Parsing is done via * addDecoratedFunctions: calls WM's FunctionList * old addDecoratedMacros: WM's MacroList did not return line numbers. Deted Extended Parsing * new addDecoratedMacros: now returns line numbers for sorting and findcode * addDecoratedConstants: searches for constant definitions * addDecoratedStructure: searches for structure definitions and analyzes the containing elements. addDecoratedConstants: Definitions support static keyword addDecoratedMacros: list decoration * makro subtype after " : " * makro parameters supported (bad coding) addDecoratedStructure: * structure definitions with surrounding {} * supports all igor7 variables types for structure definitions * unlike functions: in a structure "Name" of Variable is returned as it is more useful then "Type" * Structure Variables are sorted alphanumerically if sort is checked * main functions ** getStructureElements analyzes definitions inside structure/endstructure ** getVariableName analyzes name to return a in definitions like "a = b" Helper Function * trimArgument ** removes white spaces ** optionally changes listSparator bugfix abort added to getVariableName() in order to track down Nullstring Variable identification in structures
1 parent 7a94c20 commit 12e38b9

File tree

2 files changed

+337
-136
lines changed

2 files changed

+337
-136
lines changed

0 commit comments

Comments
 (0)