Skip to content

fix: grammar according to rfc3987 - #10

Merged
jkowalleck merged 17 commits into
mainfrom
fix/grammar_according_t-rfxc3987
Jul 16, 2026
Merged

jkowalleck merged 17 commits into
mainfrom
fix/grammar_according_t-rfxc3987

Conversation

@jkowalleck

@jkowalleck jkowalleck commented Jul 16, 2026 •

Copy link
Copy Markdown
Collaborator

reviewed the grammar (lark) in comparison to the RFC 3987 (ABNF) - https://www.rfc-editor.org/rfc/rfc3987#section-2.2

found some issues and ...

  • fixed them.
  • added tests for them

see the tests failing in #9

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck changed the title Fix/grammar according t rfxc3987 fix: grammar according to rfc3987 Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the RFC 3987 Lark grammar to better match the RFC’s ABNF definitions (notably ucschar, iprivate, and IPv6address), and extends the valid-syntax test corpus to cover the corrected ranges and IPv6 forms.

Changes:

  • Expanded ucschar and iprivate to include the full RFC 3987 Unicode ranges (including supplementary planes).
  • Refactored IPv6address grammar alternatives into a more compact repetition-based form.
  • Added new valid syntax test cases for ucschar, iprivate, and selected IPv6address patterns.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/valid_syntax.json Adds new valid syntax examples intended to cover RFC-specified Unicode ranges and IPv6 forms.
src/rfc3987_syntax2/syntax_rfc3987.lark Updates grammar productions for ucschar, iprivate, and refactors ipv6address alternatives.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/valid_syntax.json Outdated
Comment thread src/rfc3987_syntax2/syntax_rfc3987.lark Outdated
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
jkowalleck requested a review from Copilot July 16, 2026 08:48
@jkowalleck jkowalleck added the enhancement New feature or request label Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread CHANGELOG.md Outdated
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Comment thread README.md Outdated
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
jkowalleck merged commit 1f9b7f1 into main Jul 16, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants