mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
efc2d36a14
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
36 lines
773 B
C++
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
|