although we collect comment tokens in the lex stage, when the lexer passes a comment lexeme to the parser, the parser simply discards it. This means that certain features are impossible to write; most notably, it's currently impossible to write an auto-formatter for moon documents, because we're discarding the comments too early.
although we collect comment tokens in the lex stage, when the lexer passes a comment lexeme to the parser, the parser simply discards it. This means that certain features are impossible to write; most notably, it's currently impossible to write an auto-formatter for moon documents, because we're discarding the comments too early.