コード例 #1
0
ファイル: lexer.cs プロジェクト: cognitum-octopus/cognipy
        public int getpos(int pos)
        {
            int n = pos - head;

            for (CommentList c = comments; c != null; c = c.tail)
            {
                if (pos > c.spos)
                {
                    n += c.len;
                }
            }
            return(n);
        }
コード例 #2
0
ファイル: lexer.cs プロジェクト: cognitum-octopus/cognipy
 public CommentList(int st, int ln, CommentList t)
 {
     spos = st; len = ln;
     tail = t;
 }
コード例 #3
0
 /// <exclude/>
 public CommentList(int st,int ln, CommentList t)
 {
     spos = st; len = ln;
     tail = t;
 }
コード例 #4
0
ファイル: lexer.cs プロジェクト: cognitum-octopus/cognipy
 public LineList tail; // previous line!
 public LineList(int h, LineList t)
 {
     head     = h;
     comments = null;
     tail     = t;
 }
コード例 #5
0
        public LineList tail; // previous line!

        #endregion Fields

        #region Constructors

        /// <exclude/>
        public LineList(int h, LineList t)
        {
            head=h;
            comments = null;
            tail=t;
        }