@pomsky-lang/cli
v0.12.0
Published
Compile pomsky expressions, a new regular expression language
Downloads
7
Readme
Pomsky CLI
This CLI allows you to compile pomsky expressions to regexes in the command line.
Installation
You can install Pomsky by...
- downloading a pre-built binary
- using the shell or PowerShell installer
- using the Windows msi installer
- installing the
@pomsky-lang/cliNPM module globally - installing the
pomsky-binAUR package
See the releases page for instructions.
Build from source
Ensure you have a recent Rust toolchain installed. Instructions for how to install Rust can be found here. Then run
cargo install pomsky-binUsage
Then you can compile pomsky expressions to a regex flavor of your choice; the default is PCRE.
Run pomsky --help for more information.
Pomsky provides nice error messages:
$ pomsky "'Hello world'* \X+"
Error:
× Backslash escapes are not supported
╭────
1 │ 'Hello world'* \X+
· ─┬
· ╰── error occurred here
╰────
help: Replace `\X` with `Grapheme`License
Dual-licensed under the MIT license or the Apache 2.0 license.
