Add support for strictEffects to std/pegs (#18949)

* Add support for `strictEffects` to `std/pegs`

* Fixed support of older Nim versions

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
This commit is contained in:
quantimnot 2021-10-04 15:27:13 -04:00 • committed by GitHub
commit f017eadc97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -51,6 +51,9 @@ Event parser output
'''
"""
when defined(nimHasEffectsOf):
{.experimental: "strictEffects".}
import std/[strutils, streams, pegs]
const