import ast


def toAST(code):
    """Takes a string in the ar4ds dsl and returns an AST

    Args:
        code (String): A ar4ds code snippet

    Returns:
        output (ast.Tree): An abstract syntax tree representing the code
    """
    return ast.parse(code)