示例#1
0
        public LexException AddPosition(LexPosition position, string description)
        {
            if (_frozen)
                throw new InvalidOperationException("This class is no longer mutable.");

            _additionalPositions.Add(new PositionWithDescription(position, description));
            return this;
        }
示例#2
0
        public LexException AddPosition(LexPosition position, string description)
        {
            if (_frozen)
            {
                throw new InvalidOperationException("This class is no longer mutable.");
            }

            _additionalPositions.Add(new PositionWithDescription(position, description));
            return(this);
        }
示例#3
0
 public PositionWithDescription(LexPosition position, string description)
 {
     Position = position;
     Description = description;
 }
示例#4
0
 public LexException(LexPosition errorPosition, string errorDescription)
 {
     ErrorPosition = errorPosition;
     ErrorDescription = errorDescription;
 }
示例#5
0
 public PositionWithDescription(LexPosition position, string description)
 {
     Position    = position;
     Description = description;
 }
示例#6
0
 public BuiltinToken(LexPosition start, LexPosition end, string @operator)
     : base(start, end)
 {
     Builtin = @operator;
 }
示例#7
0
 public LexException(LexPosition errorPosition, string errorDescription)
 {
     ErrorPosition    = errorPosition;
     ErrorDescription = errorDescription;
 }
示例#8
0
 public EndOfFileToken(LexPosition location) : base(location, location)
 {
 }
示例#9
0
 public Token(LexPosition start, LexPosition end)
 {
     StartLocation = start;
     EndLocation   = end;
 }
示例#10
0
 public CommentToken(LexPosition start, LexPosition end) : base(start, end)
 {
 }
示例#11
0
 public IdentifierToken(LexPosition start, LexPosition end, string identifier)
     : base(start, end)
 {
     Identifier = identifier;
 }
示例#12
0
 public StringLiteralToken(LexPosition start, LexPosition end) : base(start, end)
 {
 }