Jack compiler now supports underscores in identifier
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
# ---> N2T
|
||||
tools/bin/Hardware Simulator.dat
|
||||
tools/bin/CPU Emulator.dat
|
||||
tools/bin/Virtual Machine Emulator.dat
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
||||
@@ -359,7 +359,7 @@ fn parse_keyword_or_identifier(chars: &Vec<char>, tokens: &mut Vec<Token>, index
|
||||
token_string.push(chars[index]);
|
||||
index += 1;
|
||||
|
||||
while chars[index].is_alphanumeric() {
|
||||
while chars[index].is_alphanumeric() || chars[index] == '_' {
|
||||
token_string.push(chars[index]);
|
||||
index += 1;
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
C:\Users\Eytan\Desktop\New folder\nand2tetris\projects\08\FunctionCalls\NestedCall
|
||||
Reference in New Issue
Block a user