Skip to content

Span nodes #300

Open
Open

Description

@HalidOdat

It would be nice for the nodes to have a Span for better error messages.
A Span would contain a start Position and end Position.

Activity

  1. Razican commented on Apr 3, 2020

    @Razican
    Member

    I think this would be nice, yes, but for this, we would also need that Span for tokens, as we have tokens of more than 1 character.

  2. added
    A-Enhancement
    on Apr 3, 2020
  3. jasonwilliams commented on Apr 3, 2020

    @jasonwilliams
    Member

    I don't think anything in the tokens needs to change right?
    You generate these when you generate the Node, at that point you have all the information you need. (first token and last token)

    btw I purposely left this functionality out as it caused more complication in the new parser (added scope), but im glad to see an issue for it going forward

  4. Razican commented on Apr 3, 2020

    @Razican
    Member

    I don't think anything in the tokens needs to change right?

    I think it depends on what we consider the span of a Node. The position of the last token is where the last token starts, not where the last token ends.

  5. self-assigned this
    on May 14, 2020
  6. added this to the v0.9.0 milestone on May 14, 2020
  7. linked a pull request that will close this issueExecution and Node modularization #392on May 14, 2020
  8. removed their assignment
    on May 31, 2020
  9. modified the milestones: v0.9.0, v0.10.0 on Jun 22, 2020
  10. modified the milestones: v0.10.0, v0.11.0 on Sep 28, 2020
  11. modified the milestones: v0.11.0, v0.12.0 on Jan 11, 2021
  12. 7 remaining items

  13. added this to the v0.15.0 milestone on Feb 5, 2022
  14. modified the milestones: v0.15.0, v0.16.0 on Jun 1, 2022
  15. modified the milestones: v0.16.0, v0.17.0 on Sep 19, 2022
  16. removed their assignment
    on Mar 31, 2023
  17. modified the milestones: v0.17.0, v0.18.0 on Jul 8, 2023
  18. added
    R-Triaged
    on Apr 14, 2024
  19. moved this to To do in Boa pre-v1on Dec 5, 2024
  20. HalidOdat commented on Jun 4, 2025

    @HalidOdat
    MemberAuthor

    If no one is working on this, I'd like to work on this 😄

    I think this is an important issue that needs to be resolved, and which users of boa have been struggling with (including me 😆 when trying to find bugs).

  21. nekevss commented on Jun 4, 2025

    @nekevss
    Member

    I think this is an important issue that needs to be resolved

    Assigned! 😄 I think it has been one of our most requested features.

  22. moved this from To do to In Progress in Boa pre-v1on Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-EnhancementC-ParserR-Triaged

Type

No type

Projects

  • Status
    In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions