Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doinkythederp/trigraph-machine
CLI tool for replacing C trigraphs in strings
https://github.com/doinkythederp/trigraph-machine
cli find-and-replace preprocessor trigraph
Last synced: 19 days ago
JSON representation
CLI tool for replacing C trigraphs in strings
- Host: GitHub
- URL: https://github.com/doinkythederp/trigraph-machine
- Owner: doinkythederp
- License: isc
- Created: 2022-07-14T02:38:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T02:49:56.000Z (over 2 years ago)
- Last Synced: 2023-03-04T22:49:33.768Z (over 1 year ago)
- Topics: cli, find-and-replace, preprocessor, trigraph
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trigraph-machine
This is a CLI tool I made for replacing [C trigraphs](https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C) in strings. You can pipe to and from it, like grep.
```console
$ echo "int main() ???>" | trigraph
int main() {}
$ echo "// Testing123??/" | trigraph
// Testing123\
```- Written in Rust :crab:
- I made it in a few hours :alarm_clock:
- Has a few unit tests :white_check_mark:## Building
Compile the project using `cargo`:
```bash
cargo build --release
cargo build
```