예제 #1
0
 // Returns back an error exception
 private Exception GetErrorException(string p, TokenEntity tokenEntity)
 {
     return(new Exception(string.Format("Error at '{0}': {1}", tokenEntity != null ? tokenEntity.StartPos : 0, p)));
 }
예제 #2
0
 private bool AdvanceToken()
 {
     this.lastToken = CurrentToken;
     return(this.tokens.MoveNext());
 }