hp41cx_tools: Showcasing Ada 2022 and AdaCL with Wide_Character Power
New release of hp41cx_tools crate, a cross-platform suite for decoding and converting HP-41CX emulator FOCAL code, demonstrating the strength of Ada 2022 and the AdaCL library. Available on Alire, this project runs on macOS, Linux, and Windows, and is a stellar showcase for AdaCL’s Wide_Character support.
Why It’s a Great Ada Showcase
- AdaCL with Wide_Character: Leverages
AdaCL.Wide_Strings.RegexpandAdaCL.Wide_Strings.Spitbol.Patternsfor context-sensitive conversions of special characters (e.g.,Σ,↑,≠) in FOCAL code. Theadacl-regexcrate’sWide_Charactersupport ensures precise handling of Unicode, surpassing standard regex for ALPHA strings and commands. - Robust AUnit Testing: Comprehensive unit tests, executed via
make test, ensure rock-solid reliability, covering decoding and conversion edge cases. - Ada 2022 Power: Built with modern Ada features for maintainable, high-performance code, handling
.px41and.dm41memory dumps and conversions to.utf8.focal,.dm41.focal, and.px41.focalformats.
Features
- Decode: Transform HP-41CX emulator hex dumps into FOCAL source code with automatic input detection.
- Convert: Seamlessly convert between Unicode, DM41, and PX-41CX FOCAL formats, handling quote styles and XROM key assignments.
- Pipe-Friendly: Four converters use stdin/stdout for scripting ease.
Note**:** Encoding is planned for a future release.
Explore the code on SourceForge and try it via Alire. Join the retro computing revolution and see the adacl-regex crate’s Wide_Character magic in action!