only allow lower case hex character for jump locations so labels like FINISH WORK

This commit is contained in:
Henrik Böving
2020-11-29 21:07:10 +01:00
parent 5cd2ce4dad
commit abe5b3a45f

View File

@@ -22,7 +22,7 @@ jump_argument = { jump_location | label}
argument = { memory_location | digit_literal }
memory_location = { "(" ~ ASCII_HEX_DIGIT ~")" }
digit_literal = {"#" ~ ASCII_HEX_DIGIT}
jump_location = { ASCII_HEX_DIGIT }
jump_location = { '0'..'9' | 'a'..'f' }
label = { ASCII_ALPHA_UPPER+ }