A trustworthy parser for POSIX shell
Module Morbig . Prelexer

token b l advances in the lexbuf l, and produces a list of pretokens from l, using a queue of symbols in the buffer b

single_quotes b l advances in the lexing buffer l to recognize a word between single quotes. This is used by here-document recognition.