Ejemplo n.º 1
0
        //public override bool Valid(Statement s)
        //{
        //    if (s is InterfaceCommandStatement)
        //    {
        //        return true;
        //    }
        //    return base.Valid(s);
        //}
        public virtual void VisitInterfaceCommandStatement( InterfaceCommandStatement command)
        {
            if (ClassName == null)
                throw new MalformedFSMException("Encountered interfacecommand directive before class directive.", command.line);

            stream.WriteLine("\t\t" + command.name + " = " + commandIndex + ",");
            commandIndex++;
        }
Ejemplo n.º 2
0
 //public override bool Valid(Statement s)
 //{
 //    if (s is InterfaceCommandStatement)
 //    {
 //        return true;
 //    }
 //    return base.Valid(s);
 //}
 public virtual void VisitInterfaceCommandStatement(InterfaceCommandStatement command)
 {
     commands.Add(command.name);
 }