EnumUtils, speed up findStr in compiler (#15777)

* add parseEnumRange
* fix runnable example
* update changelog
* use parseEnumRange in compiler
* reorganise code
* add changelog, make single normalizer argument
This commit is contained in:
cooldome 2020-11-03 15:26:16 +00:00 • committed by GitHub
commit d62f3627aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 89 additions and 68 deletions

View file

@ -17,6 +17,7 @@
- Added `randState` template that exposes the default random number generator. Useful for library authors.
- Added std/enumutils module containing `genEnumCaseStmt` macro that generates case statement to parse string to enum.
## Language changes