Last Modified
2014-09-11 14:51:21 +0000
Requires

Description

Evaluates a block at parse time. The result from the block must be a parser (something which implements apply). In the first case, the parser will then be applied to the input, creating the result.

Dynamic parses are never cached.

Example:

dynamic { rand < 0.5 ? str('a') : str('b') }