Path: | lib/parslet/atoms/alternative.rb |
Last Update: | Thu Apr 26 16:22:26 -0400 2012 |
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'