mirror of
https://github.com/corn-config/corn.git
synced 2026-07-11 05:16:10 +01:00
[PR #41] Big rewrite of the parser #42
Labels
No labels
bug
bug
documentation
enhancement
enhancement
pull-request
tooling
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
corn-config/corn#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/corn-config/corn/pull/41
Author: @puppymati
Created: 3/29/2025
Status: 🔄 Open
Base:
master← Head:parser-rewrite📝 Commits (10+)
e3142ceFix inconsistencies in inputsa9b79d4Create an initial skeleton for the new parser7d6dd41Fix lua implementation935f6c4Fix manifestace884eImplement custom deserializer and serializer for Value55324b4Move value to its own module05a910cImplement a custom integer type68ea73cImplement value helpersfa63a50Add a warning about missing docs72ef842Improve error implementation📊 Changes
18 files changed (+967 additions, -1351 deletions)
View changed files
📝
Cargo.lock(+52 -260)📝
Cargo.toml(+18 -35)📝
assets/inputs/compact.corn(+1 -1)📝
assets/inputs/complex_keys.corn(+1 -1)📝
assets/inputs/very_compact.corn(+1 -1)📝
cli/src/error.rs(+6 -6)📝
cli/src/main.rs(+2 -2)📝
src/de.rs(+326 -440)📝
src/error.rs(+51 -20)➖
src/grammar.pest(+0 -93)📝
src/lib.rs(+8 -60)📝
src/lua.rs(+2 -2)➖
src/parser.rs(+0 -425)➕
src/value/de.rs(+114 -0)➕
src/value/integer.rs(+89 -0)➕
src/value/mod.rs(+261 -0)➕
src/value/ser.rs(+30 -0)📝
tests/parser_tests.rs(+5 -5)📄 Description
This is a work in progress PR, mostly to keep track publicly of the progress but obviously not ready to merge yet. I'll add a proper description later.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.