6 Commits

Author SHA1 Message Date
Nana Sakisaka
aff263bb1d Clarify behavior of iterator/attribute on failed parse (#64)
The old implementation created temporary container variable and
move-appended its elements to the exposed attribute. This commit adds
new core class `container_appender` that transparently handles insertion
in underlying parsers, without the need to creating a temporary variable.
This change simplifies the core behavior of how the attribute and
iterator is preserved (or not preserved) in failed parse attempts.

Since X4 does not allow error handlers to return anything except `void`,
X4's iterator rollback behavior is not dependent on the error handler
anymore. This commit further clarifies the iterator/attribute behavior
for all supported core parsers.

Due to the reasons described above, this commit not only acts as X4's
"companion" fix mentioned in boostorg/spirit#833, but essentially acts as
the strict superset of the corresponding work boostorg/spirit#836 in X4's
domain.
2025-10-06 00:17:48 +09:00
Nana Sakisaka
cc023e8210 Merge pull request #58 from saki7/attr-constexpr-string
Make `x4::attr(...)` capable of holding `constexpr` string
2025-09-30 20:56:04 +09:00
Nana Sakisaka
05bf2eb30b Migrate to Catch2 (#48)
* Migrate to Catch2

* Enable colors in Catch2

* CI: Cache Catch2

* Remove unused variable

* Supply compiler flags to `Catch2WithMain`

* CI: Fix Catch2 cache

* Fix styling
2025-09-25 17:26:35 +09:00
Nana Sakisaka
8cdecfda6b Move license header inside the namespace 2025-09-19 18:25:03 +09:00
Nana Sakisaka
11bec17390 Include only minimal headers (#33) 2025-09-19 14:50:21 +09:00
Nana Sakisaka
d457307a60 Move tests from x3 to x4 2025-09-18 20:38:29 +09:00