Skip to content
Snippets Groups Projects
Commit a6d061fd authored by Andreas Mayer's avatar Andreas Mayer
Browse files

adjusted the concatenation to the Number update

parent 2c0b835b
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ public class Lexer {
}
// if necessary, parse t to int here
// Writes the digits into a Number object and verbalizes the number value
tokens.add(new Number(Integer.parseInt(newToken)));
tokens.add(new Number(newToken));
System.out.print("Added number to the tokens list: " + newToken + "\n");
}
......@@ -69,7 +69,7 @@ public class Lexer {
}
}
// Checks whether the tokens have been correctly created and verbalized
// Checks whether the tokens have been correctly created and added to the list
System.out.println(tokens);
return tokens;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment