Lexing of string literals.
(vl-lex-string echars breakp st) → (mv token/nil remainder)
Function:
(defun vl-lex-string (echars breakp st) (declare (xargs :guard (and (vl-echarlist-p echars) (booleanp breakp) (vl-lexstate-p st)))) (let ((__function__ 'vl-lex-string)) (declare (ignorable __function__)) (b* (((unless (and (consp echars) (eql (vl-echar->char (car echars)) #\"))) (mv nil echars)) ((mv string prefix remainder) (vl-read-string echars st)) ((unless string) (mv nil echars)) (token (make-vl-stringtoken :etext prefix :expansion string :breakp (and breakp t)))) (mv token remainder))))