I am attempting to use the AST modules as the basis for a refactoring tool. As a test I ran Lexer:scan() against the enumerate.lua source then ran Parser:parseChunk() on the token list it produced. This resulted in an error:
Expected Token.Kind.Name, got Token.Kind.Comment
I would expect comments at the beginning of a source file to be valid syntax. Is this a bug in the parser or am I using these modules incorrectly?