Macro value encoder

33 views
Skip to first unread message

Alexandre DUVAL

unread,
Sep 1, 2020, 6:31:30 AM9/1/20
to Warp 10 users

Hi,

Does macro value encoder supports nested macro value? And what does it looks like?

Something like:

```
:m:macro:{'s' '12.12.12.12' 'i1' 10 'l' 2 'i2' 20 'd' 3.2 'b1' false 'nested' ':m:nested:{'s' '12.12.12.12'}'}
````

Fabien Tencé

unread,
Sep 2, 2020, 3:47:53 AM9/2/20
to Warp 10 users
Hi,

You can indeed manage nested values with macro value encoder but it's up to your macro to handle that. Only `:m:macro:` is parsed and the rest is fed to your macro.
Your macro should parse the input (JSON, Protobuf, WarpScript, etc.) and look recursively for you 'nested' field in the structure.

It would be too cumbersome and un-optimized to look for the MVE prefix in the whole input.

Reply all
Reply to author
Forward
0 new messages