pomsky-bin

Crates.iopomsky-bin
lib.rspomsky-bin
version0.12.0
created_at2022-07-04 18:36:47.497358+00
updated_at2025-11-08 10:11:34.882023+00
descriptionCompile pomsky expressions, a new regular expression language
homepagehttps://pomsky-lang.org/
repositoryhttps://github.com/pomsky-lang/pomsky
max_upload_size
id619120
size124,725
Ludwig Stecher (Aloso)

documentation

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/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.

Commit count: 456

cargo fmt