apache / apache/datafusion-sqlparser-rs

Add line/column information consistently to every parser message.

未关闭
#179 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
help wanted
主要语言
Rust
星标
3.5k
派生
772
平均合并
4 天 9 小时
30 天内合并 PR
17

描述

It would be useful to have clear parser errors which have the position (line and column) printed.

Now for some errors there is information of where the error happened:

`Unterminated string literal at Line: {}, Col: {}`

For others, there isn't:

`Unexpected EOF while in a multi-line comment`

I think this would be a "good first issue" to work on, maybe I find some time to work on this soon.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 parser 错误消息,包括“Unterminated string literal”和“Unexpected EOF while in a multi-line comment”,并检查当前如何附加行和列位置。审查其余的 parser 消息,并确定覆盖这些消息的测试。当每条 parser 消息都一致地包含行和列信息时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
compilers
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。