pomsky-bin 0.12.0

Compile pomsky expressions, a new regular expression language
Documentation

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/cli NPM module globally
  • installing the pomsky-bin AUR 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-bin

Usage

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.