- Fixed only able to set one var at at time.
- Auto wrapping of generators now throws a
TypeError
if anundefined
value is used. ** This is useful for large grammars because havingundefined
values is almost always a coding error. - Further clarified behavior of
pep.str()
. ** Now will always convert input arg to string, even if the arg is undefined. - Changed
opt
andmany
andmany1
to throw aRangeError
instead of a custom error type. - Allow
seqa
to take any array-ish object instead of requiring a real array.
- Expose
getRandom
to get the current random number generator.
- Allow
undefined
to be used as default value inget
.
- Added
seqa
generator. ** Same asseq
but takes an array-ish of generators. - Use array literals to express sequences in grammars:
**
pep.choice(['a', 3], ['b', 4])
Yields either 'a' then '3', or 'b' then '4'.
- Further perf improvements for
run
.
- Perf improvements and internal cleanup.
- Remove need for babel-polyfill dep.
- Allow generators to be directly as iterators. ** `Array.from(pep.seq(1, 2, 3)) === ['1', '2', '3']
- Corrected babel-polyfill being listed as a dev dep.
- Real initial release.
- Initial Release