Changes between Initial Version and Version 1 of SemanticQuery/MacroEntity


Ignore:
Timestamp:
Feb 20, 2012, 8:18:51 AM (13 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SemanticQuery/MacroEntity

    v1 v1  
     1= Macro entity = 
     2 
     3Preprocessor macro directives can be queried using the macro entity. 
     4 
     5== Initial selector ==  
     6* {{{@macro}}}: this selector can be used to start a query with the currently selected macro. 
     7 
     8== Selectors ==  
     9 
     10''After the name of the selector between parentheses you can find the type of the elements in the resulted set.'' 
     11 
     12* {{{refs}}} (''expression''): returns every expression that refers to the given macro with the form {{{?Macro...}}}. 
     13* {{{file}}} (''file''): returns the file entity that the macro is defined in. 
     14 
     15== Properties ==  
     16 
     17Macro entities have the following properties: 
     18* {{{name}}} (''atom, string''): returns the identifier of the macro. 
     19* {{{arity}}} (''int''): returns the arity of a given parametric macro. If the macro is a constant, the arity is 0. 
     20* {{{const}}} (''bool''): returns true if the given macro is a constant. Note, that there are parametric macros with no parameters, these are treated as non-constant macros.