Files
Giacomo Vercesi efc2d36a14 Introduce ptml namespace
The `ptml` namespace contains utilities for easier PTML manipulation.
These include:

* A few constants (e.g. standard attributes) available in
  `revng/PTML/Constants.h`
* The `Tag` class to easily construct html/xml tags with attributes
  without having to use format strings.
* The `PTMLIndentedOstream`, a llvm::raw_ostream wrapper that
  automatically adds tagged indentation to the output
2022-07-28 08:47:17 +02:00

36 lines
773 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
namespace ptml {
namespace tags {
inline constexpr auto Div = "div";
inline constexpr auto Span = "span";
} // namespace tags
namespace attributes {
inline constexpr auto Scope = "data-scope";
inline constexpr auto Token = "data-token";
inline constexpr auto LocationDefinition = "data-location-definition";
inline constexpr auto LocationReferences = "data-location-references";
inline constexpr auto ModelEditPath = "data-model-edit-path";
} // namespace attributes
namespace scopes {} // namespace scopes
namespace tokens {
inline constexpr auto Indentation = "indentation";
inline constexpr auto Comment = "comment";
} // namespace tokens
} // namespace ptml