Returning from calls 10.5.1
This commit is contained in:
parent
10cc5e6e89
commit
7f4946f1e9
10 changed files with 196 additions and 23 deletions
|
|
@ -30,7 +30,7 @@ class Scanner {
|
|||
current++;
|
||||
return true;
|
||||
}
|
||||
private void addToken(TokenType type, TValue literal = TValue.nil(0)){
|
||||
private void addToken(TokenType type, TValue literal = TValue.nil(tvalueNil)){
|
||||
string text = source[start .. current];
|
||||
tokens ~= new Token(type, text, literal, line);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue