Skip to content

Commit

Permalink
Closed #70
Browse files Browse the repository at this point in the history
  • Loading branch information
sys27 committed Apr 29, 2014
1 parent 2ab7218 commit f2f84fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xFunc.Maths/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ public IEnumerable<IToken> Tokenize(string function)
{
var lastToken = tokens.LastOrDefault();
if (lastToken == null || (lastToken as VariableToken) == null)
// todo: ???
throw new LexerException();
throw new LexerException(string.Format(Resource.NotSupportedSymbol, letter));

tokens.Add(new OperationToken(Operations.Increment));
i += 2;
Expand Down Expand Up @@ -151,8 +150,7 @@ public IEnumerable<IToken> Tokenize(string function)
{
var lastToken = tokens.LastOrDefault();
if (lastToken == null || (lastToken as VariableToken) == null)
// todo: ???
throw new LexerException();
throw new LexerException(string.Format(Resource.NotSupportedSymbol, letter));

tokens.Add(new OperationToken(Operations.Decrement));
i += 2;
Expand Down

0 comments on commit f2f84fc

Please sign in to comment.