Skip to content

vinumc: report errors line, column and text - #143

Open
artP2 wants to merge 2 commits into
developfrom
report-errors
Open

vinumc: report errors line, column and text#143
artP2 wants to merge 2 commits into
developfrom
report-errors

Conversation

@artP2

@artP2 artP2 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@artP2 artP2 self-assigned this Jun 7, 2026
@artP2 artP2 linked an issue Jun 7, 2026 that may be closed by this pull request
Comment thread subprojects/vinumc/dry_bison.y Outdated
Comment thread subprojects/vinumc/dry_flex.l
@artP2
artP2 force-pushed the report-errors branch 3 times, most recently from 22d0572 to e52e813 Compare June 25, 2026 23:13
@artP2
artP2 force-pushed the report-errors branch 2 times, most recently from 5a34092 to 8ceb6ee Compare July 29, 2026 12:50
@artP2
artP2 marked this pull request as ready for review July 29, 2026 12:51
@artP2
artP2 requested a review from Grillo-0 July 29, 2026 14:20

@Grillo-0 Grillo-0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add tests for this

@artP2

artP2 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Add tests for this

done

@JeanJPNM JeanJPNM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error line has an incorrect value when this code is used as input.

[bar [other]
[a padded value]
[main: |[a]|]
[main]
input:1767992671:6: error: syntax error
1767992671 | [main]
      |      ^

I've tried to meaningfully reduce the size of the input, but this is the smallest sample I found that realiably causes this behavior.

@Grillo-0

Copy link
Copy Markdown
Member

The error line has an incorrect value when this code is used as input.

[bar [other]
[a padded value]
[main: |[a]|]
[main]
input:1767992671:6: error: syntax error
1767992671 | [main]
      |      ^

I've tried to meaningfully reduce the size of the input, but this is the smallest sample I found that realiably causes this behavior.

@JeanJPNM @artP2 I solved it. We just need to zero initialize the lineno :P

artP2 added 2 commits August 23, 2026 20:08
in the future we'll also have some error recovery test here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report the line number on errors and warnings

3 participants