Пример #1
0
        public SimpleToken WithAppendedText(string text)
        {
            SimpleToken result = this;

            result.Value += text;
            return(result);
        }
Пример #2
0
 public void HandleUnexpectedToken(SimpleToken token)
 {
     GenericWarnings.Add($"{_PeripheralHeaderFile}:{token.Line + 1}: unexpected '{token.Value}'");
 }
Пример #3
0
 public UnexpectedNonNumberException(SimpleToken token)
     : base("Expected a number, found " + token.Value)
 {
     Token = token;
 }
Пример #4
0
 private void ReportUnexpectedToken(SimpleToken token)
 {
     _ReportWriter.HandleUnexpectedToken(token);
 }