-
Notifications
You must be signed in to change notification settings - Fork 1
/
nregex.nimble
28 lines (23 loc) · 896 Bytes
/
nregex.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Package
version = "0.0.4"
author = "Esteban Castro Borsani (@nitely)"
description = "A DFA based regex engine"
license = "MIT"
srcDir = "src"
skipDirs = @["tests", "docs"]
requires "nim >= 1.0.4"
requires "unicodedb >= 0.7.2"
requires "unicodeplus >= 0.5.0"
task test, "Test":
exec "nim c -r -o:bin/nregex src/nregex.nim"
exec "nim c -r tests/tests.nim"
exec "nim c -r -d:forceRegexAtRuntime tests/tests.nim"
#when (NimMajor, NimMinor) >= (1, 1):
# exec "nim c -d:runTestAtCT --maxLoopIterationsVM:1000000000 tests/tests.nim"
exec "nim js -r -o:bin/nregex.js --styleCheck:off src/nregex.nim"
exec "nim js -r --styleCheck:off tests/tests.nim"
exec "nim js -r --styleCheck:off -d:forceRegexAtRuntime tests/tests.nim"
# Test runnable examples
exec "nim doc -o:./docs/ugh/ugh.html ./src/nregex.nim"
task docs, "Docs":
exec "nim doc --project -o:./docs ./src/nregex.nim"