Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 private void Consume()
 {
     this.currentTokenInfo = this.nextTokenInfo;
     this.nextTokenInfo = this.scanner.Scan();
 }
Ejemplo n.º 3
0
 private void Consume()
 {
     currentTokenInfo = nextTokenInfo;
     nextTokenInfo = scanner.Scan();
 }