R/eofMark.R

Defines functions eofMark

Documented in eofMark

#do not edit, edit noweb/qmrparser.nw
eofMark  <- function(action = function(s) list(type="eofMark",value=s),
                     error  = function(p) list(type="eofMark",pos=p  )) 

  function (stream) {
                  
    cstream <- streamParserNextChar(stream)
    
    if ( cstream$status != "eof" ) return(list(status="fail",node=error(streamParserPosition(stream)), stream=stream))
    
    return(list(status="ok",node=action(""),stream=cstream$stream))
  }

Try the qmrparser package in your browser

Any scripts or data that you put into this service are public.

qmrparser documentation built on April 24, 2022, 1:05 a.m.