Skip to content

Commit 99a061d

Browse files
PiotrJustynaandreasabel
authored andcommitted
Update words.x
1 parent 13839ec commit 99a061d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/words.x

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
-- Performance test; run with input /usr/dict/words, for example
1+
-- run with:
2+
-- alexScanTokens " 123 abc "
3+
-- for example
24
{
35
module Main (main) where
46
}
@@ -8,7 +10,7 @@ module Main (main) where
810
words :-
911

1012
$white+ ;
11-
[A-Za-z0-9\'\-]+ { \s -> () }
13+
[A-Za-z0-9\'\-]+ { \s -> "word: " <> s }
1214
1315
{
1416
main = do

0 commit comments

Comments
 (0)