Scanning on Demand 16
This commit is contained in:
parent
aba643a88e
commit
8fb449825d
6 changed files with 209 additions and 32 deletions
|
|
@ -6,11 +6,9 @@ import std.conv;
|
|||
import jlox.token;
|
||||
import jlox.tokentype;
|
||||
import jlox.main;
|
||||
import common.util;
|
||||
|
||||
private bool isAlpha_(dchar c) => c.isAlpha || c == '_';
|
||||
private bool isAlphaNum_(dchar c) => c.isAlphaNum || c == '_';
|
||||
|
||||
class Scanner {
|
||||
class Scanner{
|
||||
private string source;
|
||||
private Token[] tokens;
|
||||
private uint start = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue