You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5fd2652
Browse filesBrowse the repository at this point in the historyBrowse files
Modernize baseline to Java 21, adopt Java 21 features, remove NotCharacterPredicate, and add CHANGELOG
- Bump compiler release to 21 in pom.xml, update GitHub Actions CI matrix to Java 21, and remove legacy Travis CI section.
- Adopt Java 21 switch expressions in Tuple2..Tuple9 and pattern matching for instanceof across tuples, character predicates, and grammar visitors.
- Leverage Sequenced Collections (getFirst, getLast, removeLast) across CharacterPredicate, Analyzer, and GrammarDefinition.
- Remove deprecated NotCharacterPredicate alias and associated test in favor of NotCharPredicate.
- Add CHANGELOG.md covering highlights for 2.5.0 and all previous x.y.0 releases.
-**Dual-Nature Tuples**: Implement `Tuple2<T1, T2>` through `Tuple9` extending `AbstractList<Object>`.
32
32
- Enables strongly-typed accessors (`tuple.first()`, `tuple.second()`, etc.) without losing compatibility with APIs expecting `List<Object>`.
33
33
- Seamlessly passes equality against standard lists (`tuple.equals(Arrays.asList(...)) == true`).
34
34
-**Direct-Mapped Sequences**: Provide fluent `.then()` sequence chaining returning `SequenceParser2` through `SequenceParser9`, offering direct multi-argument mapping (`.map((a, b) -> ...)` via `BiFunction`, `Function3`, etc.) so users rarely need to inspect the underlying `Tuple`.
Copy file name to clipboardExpand all lines: TASKS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# PetitParser Java Parity Tasks
2
2
3
-
Roadmap to bring `petitparser-core` to feature parity with the canonical Dart implementation while maintaining strict backward compatibility with existing code and adopting modern Java best practices (Java 11 baseline, standard functional interfaces, and stream idioms).
3
+
Roadmap to bring `petitparser-core` to feature parity with the canonical Dart implementation while maintaining strict backward compatibility with existing code and adopting modern Java best practices (Java 21 baseline, standard functional interfaces, and stream idioms).
4
4
5
5
---
6
6
@@ -135,7 +135,7 @@ Roadmap to bring `petitparser-core` to feature parity with the canonical Dart im
0 commit comments