I have a rough AST-like structure; an array containing either a string, or an object, where the object has an id and arguments, where the arguments are an array of either a