Skip to content

Getting line and colone in the code. #140

@Oualitsen

Description

@Oualitsen

Hello,
I have a side project that is a parser for graphql. the main goal of it is to generate classes from a graphql schema.
I cannot seem to find a way to get the line and the column of the code that is being parsed.
I want to throw some ParseException with a good description and the where (namely the line : column) the issue came from.
I have already used JavaCC for parsing a subset of the ECMAScript language as a school project and I remember that JavaCC has that.
I wonder if petitParser has that or should we implement something to track the lines and the columns.
Thank you,
Ramdane.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions