SCM

SCM Repository

[inlinedocs] Diff of /pkg/inlinedocs/R/parsers.R
ViewVC logotype

Diff of /pkg/inlinedocs/R/parsers.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 116, Fri Jun 18 15:33:07 2010 UTC revision 118, Fri Jun 18 16:32:29 2010 UTC
# Line 105  Line 105 
105         ##    attached to the function         ##    attached to the function
106         ##    (see next parser). That solution will be also interesting for         ##    (see next parser). That solution will be also interesting for
107         ##    documenting datasets, something not done yet by inlinedocs!         ##    documenting datasets, something not done yet by inlinedocs!
108         examples.after.return = list(forfun, function(name, src, ...) {         examples.after.return = list(forfun,function(src,name="",...) {
109           ## Look for the examples mark           ## Look for the examples mark
110           m <- grep("##examples<<|#\\{\\{\\{examples", src)           m <- grep("##examples<<|#\\{\\{\\{examples", src)
111           if (!length(m)) return(list())           if (!length(m)) return(list())
# Line 801  Line 801 
801  ### A list of extracted documentation from code.  ### A list of extracted documentation from code.
802  }  }
803    
804    ### Parsers that operate only on R code, independently of the
805    ### description file.
806    nondesc.parsers <- c(extra.code.docs=list(extra.code.docs),
807      default.parsers[c("parsefun","examples.after.return","examples.in.attr")])
808    
809  extract.docs.file <- function  extract.docs.file <- function
810  ### Apply all parsers relevant to extract info from just 1 code file.  ### Apply all parsers relevant to extract info from just 1 code file.
811  (f,  (f,
812  ### File name of R code to read and parse.  ### File name of R code to read and parse.
813   parsers=list(extra.code.docs,default.parsers$parsefun),   parsers=nondesc.parsers,
814  ### Parser Functions to use to parse the code and extract  ### Parser Functions to use to parse the code and extract
815  ### documentation.  ### documentation.
816   ...   ...

Legend:
Removed from v.116  
changed lines
  Added in v.118

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge