예제 #1
0
        public static Production And(string name)
        {
            ProductionOfAnd production = new ProductionOfAnd();

            production.name = name;
            return(production);
        }
예제 #2
0
        public override Production Copy()
        {
            ProductionOfAnd production = new ProductionOfAnd();

            production.name = this.name;
            this.CopyChildrenTo(production);
            return(production);
        }
예제 #3
0
        public static Production operator +(Production lhs, Production rhs)
        {
            ProductionOfAnd parent = new ProductionOfAnd();

            parent.Add(lhs);
            parent.Add(rhs);
            return(parent);
        }
예제 #4
0
        public static Production operator +(string content, Production rhs)
        {
            ProductionOfAnd parent = new ProductionOfAnd();

            parent.Add(new ProductionOfString()
            {
                content = content
            });
            parent.Add(rhs);
            return(parent);
        }
예제 #5
0
        public static Production operator +(Production lhs, int tokenID)
        {
            ProductionOfAnd parent = new ProductionOfAnd();

            parent.Add(lhs);
            parent.Add(new ProductionOfInt()
            {
                tokenid = tokenID
            });
            return(parent);
        }