Path: | lib/parslet/atoms/alternative.rb |
Last Update: | Fri Jul 15 14:35:39 -0400 2016 |
Alternative during matching. Contains a list of parslets that is tried each one in turn. Only fails if all alternatives fail.
Example:
str('a') | str('b') # matches either 'a' or 'b'