Skip to content

Prefer ps.expectChar() over ps.next() #320

@stasm

Description

@stasm

The source code of the tooling parser uses a lot of ps.next() and ps.peek(). Sometimes it's clear what characters they peek over or consume; other times it's hard to see right away and one needs to trace it back to some other part of the code. It might be helpful to use more explicit methods, like ps.expectChat(), instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions