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

malachi

A domain specific pattern matching language made for defining bot commands

23 releases

0.9.8 Aug 27, 2024
0.9.6 Apr 7, 2024
0.9.4 Jan 9, 2024
0.9.1 May 23, 2022
0.6.2 Nov 22, 2021

#623 in Text processing

Download history 16/week @ 2024-09-14 32/week @ 2024-09-21 10/week @ 2024-09-28 1/week @ 2024-10-05 2/week @ 2024-10-12 46/week @ 2024-12-07 9/week @ 2024-12-28

55 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

~2.9–4MB
~72K SLoC