Skip to content

vinumc: report errors line, column and text#143

Draft
artP2 wants to merge 1 commit into
developfrom
report-errors
Draft

vinumc: report errors line, column and text#143
artP2 wants to merge 1 commit 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
return TEXT;
}

static void update_line_buffer(struct compiler_ctx *ctx, const char *text) {

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.

Use a vut_sv here to avoid copying

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

YY_USER_ACTION is called after each flex rule, so we need to accumulate the chars that composes the line, can't use a vut_sv from the args text

@artP2 artP2 force-pushed the report-errors branch 2 times, most recently from 2180edf to 22d0572 Compare June 25, 2026 23:11
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

2 participants