コード例 #1
0
ファイル: lsl.parser.cs プロジェクト: WordfromtheWise/Aurora
		public  States (Parser yyp, States  s , State  us ):base(((LSLSyntax
		                                                          )yyp)){ while (0< s . kids . Count ) kids . Add ( s . kids . Pop ());
			kids . Add ( us );
		}
コード例 #2
0
        /// <summary>
        /// Generates the code for a State node.
        /// </summary>
        /// <param name="s">The State node.</param>
        /// <returns>String containing C# code for State s.</returns>
        private string GenerateState(State s)
        {
            string retstr = "";

            foreach (SYMBOL kid in s.kids)
                if (kid is StateEvent)
                    retstr += GenerateStateEvent((StateEvent)kid, s.Name);

            return retstr.ToString();
        }
コード例 #3
0
ファイル: lsl.parser.cs プロジェクト: WordfromtheWise/Aurora
		public  States (Parser yyp, State  ds ):base(((LSLSyntax
		                                              )yyp)){ kids . Add ( ds );
		}
コード例 #4
0
        /// <summary>
        /// Generates the code for a State node.
        /// </summary>
        /// <param name="s">The State node.</param>
        /// <returns>String containing C# code for State s.</returns>
        private string GenerateState(State s)
        {
            StringBuilder retstr = new StringBuilder();

            foreach (SYMBOL kid in s.kids)
                if (kid is StateEvent)
                    retstr.Append(GenerateStateEvent((StateEvent) kid, s.Name));

            return retstr.ToString();
        }