예제 #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);
 }