Question: are comments passed to the parser?
Answer: ETA: The lexical analyzer is the part of a parser that converts characters into tokens, which it then passes to the parser. ... Whitespace, newlines, and comments aren't semantic in a lot of languages, so they aren't passed as tokens at all.