Simplified unify map creation
This commit is contained in:
parent
37e7c021a2
commit
8287f276d7
1 changed files with 3 additions and 4 deletions
|
@ -39,10 +39,9 @@
|
|||
(when alt
|
||||
{:expr expr
|
||||
:rule rule
|
||||
:alt (if (or (string? alt)
|
||||
(not (sequential? alt)))
|
||||
alt
|
||||
(seq alt))
|
||||
:alt (if (seq? alt)
|
||||
(seq alt)
|
||||
alt)
|
||||
:line (-> expr meta :line)})))
|
||||
|
||||
;; Loop over the rule set.
|
||||
|
|
Loading…
Reference in a new issue