Skip to content

Expected operator, found EOI #943

@lambdaknight

Description

@lambdaknight

Describe the bug
Pratt parser fails to parse a set of Pairs if EOI is included in them.

To Reproduce
Steps to reproduce the behavior:

  1. Modify the derive/examples/calc.rs example to not do the calls on lines 93-98.

Expected behavior
It should work?

Additional context
Seems like EOI should be ignored or handled in some other way than requiring you to manually handle the parse tree for one level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions