Ejemplo n.º 1
0
        string RawParseComment(Node parent)
        {
            var n = new CommentNode();

            MarkLocation(n);
            n.Comment = CurrToken.Value;
            parent.Add(n);

            Next();

            FetchToken(TokenType.EOL, "comment must has EOL end");

            return(n.Comment);
        }
Ejemplo n.º 2
0
 public virtual void Print(CommentNode node, StringBuilder sb, PrintOption opt, params object[] values)
 {
     sb.AppendFormat("{0}//{1}\n", opt.MakeIndentSpace(), node.Comment);
 }