Exemple #1
0
        /// <summary>
        /// This method prints the timeSecondNode
        /// </summary>
        /// <param name="timeSecondNode">The node to print.</param>
        /// <returns>Returns null</returns>
        public override object Visit(TimeSecondNode timeSecondNode)
        {
            Print("TimeSecondNode");

            return(null);
        }
 /// <summary>
 /// This method visits a time second node
 /// the result is multiplied by 1000 to convert it to milliseconds
 /// </summary>
 /// <param name="timeSecondNode">The name of the node</param>
 /// <returns>It returns the second in milliseconds</returns>
 public override object Visit(TimeSecondNode timeSecondNode)
 {
     return("*1000");
 }
Exemple #3
0
 /// <summary>
 /// This method type checks the TimeSecondNode node in the AST.
 /// </summary>
 /// <param name="timeSecondNode">The node to check.</param>
 /// <returns>Returns null</returns>
 public override object Visit(TimeSecondNode timeSecondNode)
 {
     return(null);
 }
Exemple #4
0
 /// <summary>
 /// This visits a TimeSecond node
 /// </summary>
 /// <param name="timeSecondNode">The visited node</param>
 /// <returns></returns>
 public abstract object Visit(TimeSecondNode timeSecondNode);