예제 #1
0
 private static FormattingException SyntaxError(TokenInfo tokenInfo, string format, params object[] arguments)
 {
     return tokenInfo.Token == Token.EndOfInput
                ? new FormattingException(tokenInfo.Location, "Unexpected end of input.")
                : new FormattingException(tokenInfo.Location, Utilities.InvariantFormat(format, arguments));
 }
예제 #2
0
 private void Consume()
 {
     this.currentTokenInfo = this.nextTokenInfo;
     this.nextTokenInfo = this.scanner.Scan();
 }
예제 #3
0
 private void Consume()
 {
     currentTokenInfo = nextTokenInfo;
     nextTokenInfo = scanner.Scan();
 }