def variable_decls(printer, ast):
    """Prints "type varName [= initData]"."""
    type_str = printer.ast_to_string(ast["type"])
    var_data_str = ', '.join(map(lambda var: printer.ast_to_string(var), ast["varData"]))
    return f'{type_str} {var_data_str};'