Refactor tokenizer: remove colon, add colon as duration separator to note and create TokenType.TYPE
This commit is contained in:
@@ -25,7 +25,7 @@ def tokenizeNote(input, current, line):
|
||||
octave = input[current+consumedChars]
|
||||
consumedChars += 1
|
||||
|
||||
if current+consumedChars < len(input) and input[current+consumedChars] == '^':
|
||||
if current+consumedChars < len(input) and input[current+consumedChars] == ':':
|
||||
duration = ''
|
||||
consumedChars += 1
|
||||
while current+consumedChars < len(input) and re.match(r'\d', input[current+consumedChars]):
|
||||
|
||||
Reference in New Issue
Block a user