Skip to content

Is there an equivalent to $startpos and $endpos? #234

@njlr

Description

@njlr

In this code for ocamlyacc, there are expressions $startpos and $endpos:

| x = TIDENT
     { Tvar (($startpos, $endpos), x) }

https://github.com/ahrefs/atd/blob/7f786931e05b238b2cc4a9c63c2521d3f68d7052/atd/src/parser.mly#L135-L136

I think that these take the location of the TIDENT token.

Is there an equivalent to this in FsYacc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions