public States(Parser yyp, States s, State us) : base((yyp)) { while (0 < s.kids.Count) kids.Add(s.kids.Pop()); kids.Add(us); }
/// <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> string GenerateState(State s) { StringBuilder retVal = new StringBuilder(); _currentLocalStateDeclaration = s; foreach (SYMBOL kid in s.kids) if (kid is StateEvent) retVal.Append(GenerateStateEvent((StateEvent)kid, s.Name)); return retVal.ToString(); }
public States(Parser yyp, State ds) : base((yyp)) { kids.Add(ds); }