[PR #17] [MERGED] New features for primitive types #26

Closed
opened 2026-05-22 22:05:14 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/corn-config/corn/pull/17
Author: @JakeStanger
Created: 6/15/2023
Status: Merged
Merged: 6/15/2023
Merged by: @JakeStanger

Base: masterHead: feat/better-primitives


📝 Commits (9)

  • d51bf5a fix(parser): crash when spreading invalid type
  • 301ceea feat(parser): add hex and underscore separator support to integers.
  • 53afac7 feat(parser): add escape char, interpolation support to strings
  • 0ec37d8 test: add benchmarking
  • 42fa830 refactor: fix clippy warning
  • 693c91e test: add coverage for float exponent syntax
  • fd437ca chore(intellij): add configs
  • 96911b8 chore: specify binary in generate-tests script
  • 6f5f066 docs(readme): update to cover new features

📊 Changes

40 files changed (+1254 additions, -78 deletions)

View changed files

📝 .idea/conflang.iml (+1 -0)
.idea/jsLibraryMappings.xml (+6 -0)
.idea/runConfigurations/Clippy.xml (+19 -0)
.idea/runConfigurations/Run_CLI.xml (+21 -0)
.idea/runConfigurations/Run_LSP.xml (+21 -0)
.idea/runConfigurations/Test.xml (+21 -0)
.idea/runConfigurations/build.xml (+12 -0)
📝 Cargo.lock (+440 -5)
📝 README.md (+34 -0)
📝 assets/inputs/float.corn (+1 -0)
📝 assets/inputs/integer.corn (+2 -0)
📝 assets/inputs/string.corn (+3 -0)
assets/inputs/string_interpolation.corn (+6 -0)
📝 assets/outputs/json/complex.json (+1 -1)
📝 assets/outputs/json/float.json (+1 -0)
📝 assets/outputs/json/integer.json (+2 -0)
📝 assets/outputs/json/string.json (+4 -1)
assets/outputs/json/string_interpolation.json (+3 -0)
📝 assets/outputs/toml/complex.toml (+1 -1)
📝 assets/outputs/toml/float.toml (+1 -0)

...and 20 more files

📄 Description

Adds new features to strings and integers (also documents/tests a float feature).

Some general code quality things and whatnot to go with it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/corn-config/corn/pull/17 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 6/15/2023 **Status:** ✅ Merged **Merged:** 6/15/2023 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/better-primitives` --- ### 📝 Commits (9) - [`d51bf5a`](https://github.com/corn-config/corn/commit/d51bf5abd4a6ad2b86cb8b1e8a5fd3a65ac0ea30) fix(parser): crash when spreading invalid type - [`301ceea`](https://github.com/corn-config/corn/commit/301ceea0c4dafffd38f4688fcf1df6d7bfdb448b) feat(parser): add hex and underscore separator support to integers. - [`53afac7`](https://github.com/corn-config/corn/commit/53afac74dce229f57873e1af3edd6e86cb793ce7) feat(parser): add escape char, interpolation support to strings - [`0ec37d8`](https://github.com/corn-config/corn/commit/0ec37d871742ab46c5c3b3ad3732c0444413f839) test: add benchmarking - [`42fa830`](https://github.com/corn-config/corn/commit/42fa830d0bd2f9fefc86b8e841c3abbbd0fe68f2) refactor: fix clippy warning - [`693c91e`](https://github.com/corn-config/corn/commit/693c91ec50aca1004b79b74b30313cd798d3cfac) test: add coverage for float exponent syntax - [`fd437ca`](https://github.com/corn-config/corn/commit/fd437cabb3e90bc4bc254fb7a887e635153eca3f) chore(intellij): add configs - [`96911b8`](https://github.com/corn-config/corn/commit/96911b82739f5d53329d26363a52b4e8c74af769) chore: specify binary in generate-tests script - [`6f5f066`](https://github.com/corn-config/corn/commit/6f5f06683a448c765bb64cc59a9fc08b16e20762) docs(readme): update to cover new features ### 📊 Changes **40 files changed** (+1254 additions, -78 deletions) <details> <summary>View changed files</summary> 📝 `.idea/conflang.iml` (+1 -0) ➕ `.idea/jsLibraryMappings.xml` (+6 -0) ➕ `.idea/runConfigurations/Clippy.xml` (+19 -0) ➕ `.idea/runConfigurations/Run_CLI.xml` (+21 -0) ➕ `.idea/runConfigurations/Run_LSP.xml` (+21 -0) ➕ `.idea/runConfigurations/Test.xml` (+21 -0) ➕ `.idea/runConfigurations/build.xml` (+12 -0) 📝 `Cargo.lock` (+440 -5) 📝 `README.md` (+34 -0) 📝 `assets/inputs/float.corn` (+1 -0) 📝 `assets/inputs/integer.corn` (+2 -0) 📝 `assets/inputs/string.corn` (+3 -0) ➕ `assets/inputs/string_interpolation.corn` (+6 -0) 📝 `assets/outputs/json/complex.json` (+1 -1) 📝 `assets/outputs/json/float.json` (+1 -0) 📝 `assets/outputs/json/integer.json` (+2 -0) 📝 `assets/outputs/json/string.json` (+4 -1) ➕ `assets/outputs/json/string_interpolation.json` (+3 -0) 📝 `assets/outputs/toml/complex.toml` (+1 -1) 📝 `assets/outputs/toml/float.toml` (+1 -0) _...and 20 more files_ </details> ### 📄 Description Adds new features to strings and integers (also documents/tests a float feature). Some general code quality things and whatnot to go with it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 22:05:14 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
corn-config/corn#26
No description provided.