public static Production operator |(Production lhs, Production rhs) { ProductionOfOr parent = new ProductionOfOr(); parent.Add(lhs); parent.Add(rhs); return(parent); }
public static Production operator |(Production lhs, int tokenID) { ProductionOfOr parent = new ProductionOfOr(); parent.Add(lhs); parent.Add(new ProductionOfInt() { tokenid = tokenID }); return(parent); }
public static Production operator |(string content, Production rhs) { ProductionOfOr parent = new ProductionOfOr(); parent.Add(new ProductionOfString() { content = content }); parent.Add(rhs); return(parent); }