Esempio n. 1
0
 public virtual void Visit(CommentStatement statement)
 {
     VisitSubNodes(statement);
 }
Esempio n. 2
0
        /// <summary>
        /// Parser for CommentStatement
        /// </summary>
        /// <returns>Parsed CommentStatement</returns>
        public CommentStatement ParseCommentStatement()
        {
            CommentStatement commentStatement = new CommentStatement();

            //Skip comment token
            NextToken("comment", "comment thisisacomment;", "comment");

            //Parse comment
            CurrentToken = TokenStream.NextToken();
            commentStatement.SetCommentString(CurrentToken.GetValue().ToString());

            //Skip ; token
            NextToken(";", "comment thisisacomment;", ';');

            return commentStatement;
        }