Skip to content

Expected Token.Kind.Name, got Token.Kind.Comment #3

@kennethcochran

Description

@kennethcochran

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions