lex_crlf

Function lex_crlf 

Source
fn lex_crlf(stream: &mut LocatingSlice<&'_ str>) -> Token
Expand description

Process Newline

;; Newline

newline =  %x0A     ; LF
newline =/ %x0D.0A  ; CRLF

ยงSafety

  • stream must be UTF-8
  • stream[0] == b'\r'