Jack compiler now supports underscores in identifier

This commit is contained in:
2020-11-15 16:12:10 -05:00
parent fb224f31ed
commit 01e43dfba0
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@@ -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__/

View File

@@ -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;
}

View File

@@ -1 +0,0 @@
C:\Users\Eytan\Desktop\New folder\nand2tetris\projects\08\FunctionCalls\NestedCall