summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GML/Formatter.h
blob: 91d4b9defed63d2d5ff58b2f4e9e3c78500e9887 (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/DeprecatedString.h>
#include <AK/Forward.h>
#include <LibGUI/GML/AST.h>
#include <LibGUI/GML/Parser.h>

namespace GUI::GML {

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

}