Repository navigation
Op assignment indention - #99
Conversation
As the assignment operators requires flattening from right, flatten_operators_one was completely redesigned. The flattening itself was outsourced to flatten_pd(), which can flatten from right or left. Within flatten_pd, binding together a parse table and its child was outsourced to bind_with_child
interaction between math tokens and special tokens and assignment
krlmlr
left a comment
There was a problem hiding this comment.
Looks great. You need to write "fixes ..." before each # if you want them to be auto-closed when the PR is merged.
| indent_op <- function(pd, indent_by, token = c(math_token, | ||
| "SPECIAL-PIPE")) { | ||
| "SPECIAL-PIPE", | ||
| "LEFT_ASSIGN", " |
| } | ||
|
|
||
|
|
||
| #' Flaten one level of nesting with its child |
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
=========================================
Coverage ? 91.77%
=========================================
Files ? 18
Lines ? 596
Branches ? 0
=========================================
Hits ? 547
Misses ? 49
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
=========================================
Coverage ? 91.77%
=========================================
Files ? 18
Lines ? 596
Branches ? 0
=========================================
Hits ? 547
Misses ? 49
Partials ? 0
Continue to review full report at Codecov.
|
fixing:
#97 and #96 was a bit complicated since solving the problem required to further flatten the nested parse tables.