reunion


Name

reunion -- compute the disjunction of two regular expressions

Synopsis

reunion re1 re2

reunion re2 <re1


Description

reunion computes re1 `or' re2, and writes the result on standard output.

re1 and re2 must conform to the Grail format for regular expressions.


Examples

% cat re3
(a+b)*(abc)

% cat re2
""

% reunion re3 re2
(a+b)*abc+""

% cat re4
(((a)+(b))*)

% reunion re4 re3
(a+b)*+(a+b)*abc


Authors

Darrell Raymond and Derick Wood, the Grail project

See also

re(5)