ripsed-core
Core edit engine for ripsed — a fast, modern stream editor.
This crate contains the core logic:
- Edit engine — apply find/replace, delete, insert, transform, surround, indent/dedent operations to text
- Pattern matching — literal and regex matching with case-insensitive support
- Operation IR — the
Openum representing all supported operations - Script parser — parse
.ripscript files into operation sequences - Error taxonomy — structured errors with machine-readable codes and actionable hints
- Configuration —
.ripsed.tomlparsing and discovery - Undo — undo log data structures for reversible operations
Usage
use engine;
use Matcher;
use Op;
let op = Replace ;
let matcher = new.unwrap;
let output = apply.unwrap;
assert_eq!;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.