Commit ecb689d
authored
Fix string literal argument repetition in grammar (#181)
* Fix string literal argument repetition in grammar
Fixes #180 by no longer allowing an empty string literal to match the `#ExpressionString` context.
* Fix precedence test for sin expression (#182)
Updated test to check for correct precedence in expressions after fixing grammar error. The order-of-operations precedence was broken previously due to the possibility to insert an empty string literal turning a unary operation into a binary one.1 parent 3d343e5 commit ecb689d
2 files changed
+15
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
393 | 387 | | |
394 | 388 | | |
395 | 389 | | |
396 | 390 | | |
397 | | - | |
| 391 | + | |
398 | 392 | | |
399 | 393 | | |
400 | 394 | | |
| |||
506 | 500 | | |
507 | 501 | | |
508 | 502 | | |
509 | | - | |
| 503 | + | |
0 commit comments