Create PoC of working left associativity

This commit is contained in:
Bartłomiej Pluta
2019-07-05 20:55:36 +02:00
parent bacaeb0005
commit 9e6ead49d2
5 changed files with 76 additions and 5 deletions

View File

@@ -9,11 +9,9 @@ integer := '-' DIGIT+ | DIGIT+
string := '"' CHAR* '"'
note := '@' PITCH PITCH_MODIFIER? DIGIT? ['.' DIGIT+ 'd'?]?
identifier := ID [ID|DIGIT]*
percent := DIGIT+ '%'
# Parser
expr := integer accessTail | integer
expr := percent accessTail | percent
expr := string accessTail | string
expr := note accessTail | note
expr := identifier accessTail | identifier '=' expr | functionCall | identifier