tidying up
This commit is contained in:
parent
b1bdc326ef
commit
1f93dc2310
@ -57,9 +57,6 @@
|
|||||||
&until v]
|
&until v]
|
||||||
(if (. params k) nil k)))
|
(if (. params k) nil k)))
|
||||||
|
|
||||||
(fn invoke-command [command params]
|
|
||||||
(command.function params))
|
|
||||||
|
|
||||||
(fn next-action [self input-string]
|
(fn next-action [self input-string]
|
||||||
(let [state self.state
|
(let [state self.state
|
||||||
state-for-next-param
|
state-for-next-param
|
||||||
@ -72,7 +69,7 @@
|
|||||||
:active true
|
:active true
|
||||||
}
|
}
|
||||||
_ (let [params (lume.extend {} {:frame self.frame} params)]
|
_ (let [params (lume.extend {} {:frame self.frame} params)]
|
||||||
(invoke-command c params)
|
(c.function params)
|
||||||
{:active false})))]
|
{:active false})))]
|
||||||
|
|
||||||
(match state
|
(match state
|
||||||
@ -97,8 +94,7 @@
|
|||||||
(state-for-next-param c p))
|
(state-for-next-param c p))
|
||||||
|
|
||||||
{:command c :this-param nil :collected-params p}
|
{:command c :this-param nil :collected-params p}
|
||||||
(do
|
(state-for-next-param c p)
|
||||||
(state-for-next-param c p))
|
|
||||||
|
|
||||||
_ (do (print "unexpected state " (view state))
|
_ (do (print "unexpected state " (view state))
|
||||||
state)
|
state)
|
||||||
|
Loading…
Reference in New Issue
Block a user