Skip to content

Failure to reject incorrect inputs: name token #49

Closed
@bendrissou

Description

@bendrissou

Hi,

The parser doesn't reject some of the incorrect and incomplete Lua inputs.

As a short example, consider the following Lua string:

var_name

The parser parses and labels the input as Name, without raising any error!

In comparison to the official Lua grammar, and official Lua implementation, the input is invalid. This is because Name is not a statement. So, it can only be part of a statement, and is only allowed in certain contexts.

So my question is : is this behaviour intended? Or is it a parsing error?

Thank you.

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