예제 #1
0
 public ContentFileException(TextLocation location, string message, Exception innerException)
     : base(message, innerException)
 {
     ErrorLocation = location;
 }
예제 #2
0
 string SliceInput(ref TextLocation start, ref TextLocation end)
 {
     return input.Substring(start.Offset, end.Offset - start.Offset);
 }
예제 #3
0
 public ContentFileException(TextLocation location, string message)
     : base(message)
 {
     ErrorLocation = location;
 }
예제 #4
0
 public TsonToken(TsonTokenType tokenType, TextLocation location)
 {
     this.TokenType = tokenType;
     this.Location = location;
 }
예제 #5
0
 public TsonToken(TsonTokenType tokenType, TextLocation location, object data)
     : this(tokenType, location)
 {
     this.Data = data;
 }
예제 #6
0
 public static TsonToken Whitespace(TextLocation location, string whitespace)
 {
     return new TsonToken(TsonTokenType.Whitespace, location, whitespace);
 }
예제 #7
0
 public TsonTokenizer(string input)
 {
     this.input = input;
     this.currentLocation = new TextLocation(0, 1, 1);
 }
예제 #8
0
 public static TsonToken RightSquareBrace(TextLocation location)
 {
     return new TsonToken(TsonTokenType.RightSquareBrace, location);
 }
예제 #9
0
 public static TsonToken String(TextLocation location, string s)
 {
     return new TsonToken(TsonTokenType.String, location, s);
 }
예제 #10
0
 public static TsonToken LeftCurlyBrace(TextLocation location)
 {
     return new TsonToken(TsonTokenType.LeftCurlyBrace, location);
 }
예제 #11
0
 public static TsonToken Error(TextLocation location)
 {
     return new TsonToken(TsonTokenType.Error, location);
 }
예제 #12
0
 public static TsonToken End(TextLocation location)
 {
     return new TsonToken(TsonTokenType.End, location);
 }
예제 #13
0
 public static TsonToken Comment(TextLocation location, string comment)
 {
     return new TsonToken(TsonTokenType.Comment, location, comment);
 }
예제 #14
0
 public static TsonToken Comma(TextLocation location)
 {
     return new TsonToken(TsonTokenType.Comma, location);
 }