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