Пример #1
0
        private string Term(TermNode node)
        {
            string output = "";

            output += Factor(node.factor);
            if (node.part != null)
            {
                output += TermPart(node.part);
            }
            return(output);
        }
Пример #2
0
        public TermNode Term()
        {
            var term = new TermNode();

            term.factor = Factor();
            if (token.type == TokenTypes.MULOP)
            {
                term.part = TermPart();
            }
            return(term);
        }