Changes between Version 3 and Version 4 of Dependency/FunctionBlocks


Ignore:
Timestamp:
May 23, 2012, 6:32:21 AM (12 years ago)
Author:
manualwiki
Comment:

fb_regexp examples update

Legend:

Unmodified
Added
Removed
Modified
  • Dependency/FunctionBlocks

    v3 v4  
    119119 
    120120Examples: 
    121 *  {{{ri:fb_regexp([{type, draw}, {dot, test.dot}]).}}} 
    122 *  {{{ri:fb_regexp([{type, list}, {regexp, "regexp"}]).}}} 
    123 *  {{{ri:fb_regexp([{type, list}, {regexp, "^/home/[a-z./]+"}]).}}} 
     121{{{#!erlang 
     122ri:fb_regexp([{type, draw}, {dot, test.dot}]). 
     123}}} 
     124{{{#!erlang 
     125ri:fb_regexp([{type, list}, {regexp, "regexp"}]). 
     126}}} 
     127{{{#!erlang 
     128ri:fb_regexp([{type, list}, {regexp, "^/home/[a-z./]+"}]). 
     129}}} 
    124130 
    125131 
     
    133139 
    134140Example: 
    135 {{{ ri:fb_regexp([{type, list}, {regexp, ["/usr/[a-zA-Z./]*/.*_syntax.erl"]}]).}}} 
     141{{{#!erlang 
     142(refactorerl@localhost)2> ri:fb_regexp([{type, list}, {regexp, ["/usr/[a-zA-Z./]*/.*_syntax.*.erl"]}]). 
     143Matched modules: [{"/usr/[a-zA-Z./]*/.*_syntax.*.erl", 
     144                   [erl_syntax,erl_syntax_lib]}] 
     145%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     146[{"/usr/[a-zA-Z./]*/.*_syntax.*.erl", 
     147  [{'$gn',module,7},{'$gn',module,23}]}] 
     148}}} 
     149 
     150{{{#!erlang 
     151(refactorerl@localhost)59> ri:fb_regexp([{type, check_cycle}, {regexp, ["/usr/[a-zA-Z./]*/.*_syntax.*.erl", "/home/[a-zA-Z./]*/cycles"]}]). 
     152Matched modules: [{"/usr/[a-zA-Z./]*/.*_syntax.*.erl", 
     153                   [{'$gn',module,7},{'$gn',module,23}]}, 
     154                  {"/home/[a-zA-Z./]*/cycles", 
     155                   [{'$gn',module,44}, 
     156                    {'$gn',module,43}, 
     157                    {'$gn',module,39}, 
     158                    {'$gn',module,40}]}] 
     159 
     160Earlier results deleted (except .dot files and otp table). 
     161Building "fb_rel" table... 
     162 
     163[["/usr/local/lib/erlang/lib/syntax_tools-1.6.7.1/src", 
     164  "/usr/local/lib/erlang/lib/syntax_tools-1.6.7.1/src"], 
     165 ["/home/kinga/RefactorErl/test/cyclic/cycles", 
     166  "/home/kinga/RefactorErl/test/cyclic/cycles"]] 
     167}}} 
     168 
    136169 
    137170