summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GML/Formatter.h
blob: e4618689c3a59b37d1a44580b8a2984c47182db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Forward.h>
#include <AK/String.h>
#include <LibGUI/GML/AST.h>
#include <LibGUI/GML/Parser.h>

namespace GUI::GML {

inline ErrorOr<String> format_gml(StringView string)
{
    return TRY(parse_gml(string))->to_string();
}

}