#pattern-matching #bot #discord-bot #dsl #discord #regex

malachi

A domain specific pattern matching language made for defining bot commands

22 releases

0.9.6 Apr 7, 2024
0.9.4 Jan 9, 2024
0.9.1 May 23, 2022
0.7.0 Feb 17, 2022
0.6.2 Nov 22, 2021

#360 in Text processing

Download history 9/week @ 2024-01-06 20/week @ 2024-02-24 5/week @ 2024-03-02 2/week @ 2024-03-09 11/week @ 2024-03-30 96/week @ 2024-04-06

108 downloads per month

Apache-2.0

55KB
2K SLoC

Malachi

Malachi is a domain specific pattern matching language made mainly for defining bot commands.

There is a tutorial: tutorial.md.

Syntax Example

?divine [
	<part?: starts("part=")>
	<canto?: starts("canto="), /^\d+$/>
	<verse?: starts("verse="), /^\d+$/>
]

Usage Examples

See the examples directory.

Dependencies

~3–4MB
~71K SLoC