if (or(gre(sum(x,y), sub(x,y)), iscon(x,y,z))) [ foreach (k : arrayx) print(k) k[3] = 6 // Assign 6 to k[3] ] else if (not(iscon(x,y,z))) [ k[2] = 7 ] +-script +-block |-line | +-stmt | +-runnable | |-if if | |-( ( | |-index | | +-variable | | +-function | | |-name or | | |-( ( | | |-argument | | | |-index | | | | +-variable | | | | +-function | | | | |-name gre | | | | |-( ( | | | | |-argument | | | | | |-index | | | | | | +-variable | | | | | | +-function | | | | | | |-name sum | | | | | | |-( ( | | | | | | |-argument | | | | | | | |-index | | | | | | | | +-variable | | | | | | | | +-name x | | | | | | | |-, , | | | | | | | +-argument | | | | | | | +-index | | | | | | | +-variable | | | | | | | +-name y | | | | | | +-) ) | | | | | |-, , | | | | | +-argument | | | | | +-index | | | | | +-variable | | | | | +-function | | | | | |-name sub | | | | | |-( ( | | | | | |-argument | | | | | | |-index | | | | | | | +-variable | | | | | | | +-name x | | | | | | |-, , | | | | | | +-argument | | | | | | +-index | | | | | | +-variable | | | | | | +-name y | | | | | +-) ) | | | | +-) ) | | | |-, , | | | +-argument | | | +-index | | | +-variable | | | +-function | | | |-name iscon | | | |-( ( | | | |-argument | | | | |-index | | | | | +-variable | | | | | +-name x | | | | |-, , | | | | +-argument | | | | |-index | | | | | +-variable | | | | | +-name y | | | | |-, , | | | | +-argument | | | | +-index | | | | +-variable | | | | +-name z | | | +-) ) | | +-) ) | |-) ) | |-block | | |-[ [ | | |-block | | | |-line | | | | +-stmt | | | | +-runnable | | | | |-foreach foreach | | | | |-( ( | | | | |-name k | | | | |-: : | | | | |-index | | | | | +-variable | | | | | +-name arrayx | | | | |-) ) | | | | +-block | | | | |-line | | | | | +-stmt | | | | | +-function | | | | | |-name print | | | | | |-( ( | | | | | |-argument | | | | | | +-index | | | | | | +-variable | | | | | | +-name k | | | | | +-) ) | | | | +-block | | | | |-line | | | | | +-stmt | | | | | |-index | | | | | | |-variable | | | | | | | +-name k | | | | | | |-[ [ | | | | | | |-variable | | | | | | | +-consts | | | | | | | +-number 3 | | | | | | +-] ] | | | | | |-= = | | | | | +-index | | | | | +-variable | | | | | +-consts | | | | | +-number 6 | | | | +-block | | | +-block | | +-] ] | |-else else | +-block | |-line | | +-stmt | | +-runnable | | |-if if | | |-( ( | | |-index | | | +-variable | | | +-function | | | |-name not | | | |-( ( | | | |-argument | | | | +-index | | | | +-variable | | | | +-function | | | | |-name iscon | | | | |-( ( | | | | |-argument | | | | | |-index | | | | | | +-variable | | | | | | +-name x | | | | | |-, , | | | | | +-argument | | | | | |-index | | | | | | +-variable | | | | | | +-name y | | | | | |-, , | | | | | +-argument | | | | | +-index | | | | | +-variable | | | | | +-name z | | | | +-) ) | | | +-) ) | | |-) ) | | +-block | | |-[ [ | | |-block | | | |-line | | | | +-stmt | | | | |-index | | | | | |-variable | | | | | | +-name k | | | | | |-[ [ | | | | | |-variable | | | | | | +-consts | | | | | | +-number 2 | | | | | +-] ] | | | | |-= = | | | | +-index | | | | +-variable | | | | +-consts | | | | +-number 7 | | | +-block | | +-] ] | +-block +-block{"p":"script","c":[{"p":"block","c":[{"p":"line","c":[{"p":"stmt","c":[{"p":"runnable","c":[{"p":"if"},{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"or"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"gre"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"sum"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"x"}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"y"}]}]}]}]}]}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"sub"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"x"}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"y"}]}]}]}]}]}]}]}]}]}]}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"iscon"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"x"}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"y"}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"z"}]}]}]}]}]}]}]}]}]}]}]}]}]},{"p":"block","c":[{"p":"block","c":[{"p":"line","c":[{"p":"stmt","c":[{"p":"runnable","c":[{"p":"foreach"},{"p":"name","t":"k"},{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"arrayx"}]}]},{"p":"block","c":[{"p":"line","c":[{"p":"stmt","c":[{"p":"function","c":[{"p":"name","t":"print"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"k"}]}]}]}]}]}]},{"p":"block","c":[{"p":"line","c":[{"p":"stmt","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"k"}]},{"p":"variable","c":[{"p":"consts","c":[{"p":"number","t":"3"}]}]}]},{"p":"index","c":[{"p":"variable","c":[{"p":"consts","c":[{"p":"number","t":"6"}]}]}]}]}]},{"p":"block","t":""}]}]}]}]}]},{"p":"block","t":""}]}]},{"p":"else"},{"p":"block","c":[{"p":"line","c":[{"p":"stmt","c":[{"p":"runnable","c":[{"p":"if"},{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"not"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"function","c":[{"p":"name","t":"iscon"},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"x"}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"y"}]}]},{"p":"argument","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"z"}]}]}]}]}]}]}]}]}]}]}]}]},{"p":"block","c":[{"p":"block","c":[{"p":"line","c":[{"p":"stmt","c":[{"p":"index","c":[{"p":"variable","c":[{"p":"name","t":"k"}]},{"p":"variable","c":[{"p":"consts","c":[{"p":"number","t":"2"}]}]}]},{"p":"index","c":[{"p":"variable","c":[{"p":"consts","c":[{"p":"number","t":"7"}]}]}]}]}]},{"p":"block","t":""}]}]}]}]}]},{"p":"block","t":""}]}]}]}]},{"p":"block","t":""}]}]} <svg class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"></svg>
간단한 코드를 json으로 바꿔주는 도구