Example #1
0
        public Token
        (
            int index,
            string value,

            int line, int position,

            Tokenizer.State.Context context,
            TokenType type, TokenSubType subType
        )
        {
            Context = context;

            Index    = index;
            Line     = line;
            Position = position;

            Value  = value;
            Length = value.Length;

            Type    = type;
            SubType = subType;
        }
Example #2
0
        public Token
        (
            int index,
            string value,

            int line, int position,

            Tokenizer.State.Context context,
            TokenType type, TokenSubType subType
        )
        {
            this.Context = context;

            this.Index    = index;
            this.Line     = line;
            this.Position = position;

            this.Value  = value;
            this.Length = value.Length;

            this.Type    = type;
            this.SubType = subType;
        }