From dfc08ff2c6580bbeb3951b223e0332546ba3b0d9 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Thu, 6 May 2021 19:40:59 +0100 Subject: Introduce lambda expressions. --- tests/full/nibble/regex.nb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/full/nibble/regex.nb (limited to 'tests/full/nibble/regex.nb') diff --git a/tests/full/nibble/regex.nb b/tests/full/nibble/regex.nb new file mode 100644 index 0000000..4aa98a7 --- /dev/null +++ b/tests/full/nibble/regex.nb @@ -0,0 +1,5 @@ +let opt x = _ | x; +let plus x = !(/plus/ x . opt plus); +let star x = !(/star/ opt (x . star)); + +match plus "a" . star "b"; -- cgit v1.2.3