parameters: (self, other )
return_statement: return MatchFirst( [ self, other ] )
docstring: Implementation of | operator - returns C{L{MatchFirst}}
docstring_summary: Implementation of | operator - returns C{L{MatchFirst}}
docstring_tokens: Implementation of | operator - returns C { L { MatchFirst }}
function: def __or__(self, other ):
          """
          Implementation of | operator - returns C{L{MatchFirst}}
          """
          if isinstance( other, basestring ):
              other = ParserElement._literalStringClass( other )
          if not isinstance( other, ParserElement ):
              warnings.warn("Cannot combine element of type %s with ParserElement" % type(other),
                      SyntaxWarning, stacklevel=2)
              return None
          return MatchFirst( [ self, other ] )
function_tokens: def __or__ ( self , other ) : if isinstance ( other , basestring ) : other = ParserElement . _literalStringClass ( other ) if not isinstance ( other , ParserElement ) : warnings . warn ( "Cannot combine element of type %s with ParserElement" % type ( other ) , SyntaxWarning , stacklevel = 2 ) return None return MatchFirst ( [ self , other ] )