Convert() 개인적인 메소드

Actually performs the conversion and returns a new CNF grammar based on the old grammar
private Convert ( ) : CNFGrammar
리턴 CNFGrammar
예제 #1
0
        /// <summary>
        /// Returns a new grammar that is the CNF equivalent of this grammar.
        /// WARNING: currently this does not always preserve probabilities!
        /// </summary>
        public CNFGrammar ToCNF()
        {
            var conv = new CFGtoCNF(this);

            return(conv.Convert());
        }
예제 #2
0
파일: Grammar.cs 프로젝트: ellisonch/CFGLib
		/// <summary>
		/// Returns a new grammar that is the CNF equivalent of this grammar.
		/// WARNING: currently this does not always preserve probabilities!
		/// </summary>
		public CNFGrammar ToCNF() {
			var conv = new CFGtoCNF(this);
			return conv.Convert();
		}