Beispiel #1
0
        public static Production operator |(Production lhs, Production rhs)
        {
            ProductionOfOr parent = new ProductionOfOr();

            parent.Add(lhs);
            parent.Add(rhs);
            return(parent);
        }
Beispiel #2
0
        public static Production operator |(Production lhs, int tokenID)
        {
            ProductionOfOr parent = new ProductionOfOr();

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

            parent.Add(new ProductionOfString()
            {
                content = content
            });
            parent.Add(rhs);
            return(parent);
        }