A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
generate.h File Reference
#include <string>
#include <string_view>
#include <absl/types/span.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  a11
 
namespace  a11::flow
 

Enumerations

enum class  a11::flow::SyntaxTarget {
  a11::flow::kSublime , a11::flow::kPygments , a11::flow::kVsCode , a11::flow::kVsCodeInjection ,
  a11::flow::kBrowser
}
 An editor definition the language can write for itself. More...
 

Functions

std::string a11::flow::FragmentStartPattern ()
 Native document-start pattern used by host-string injectors.
 
absl::Span< const SyntaxTarget > a11::flow::SyntaxTargets ()
 Every target, for a command that offers a choice of them.
 
std::string_view a11::flow::SyntaxTargetName (SyntaxTarget target)
 The name a target is asked for by: sublime.
 
bool a11::flow::SyntaxTargetFromName (std::string_view name, SyntaxTarget &target)
 A target from its name, or nullopt.
 
std::string_view a11::flow::SyntaxTargetPath (SyntaxTarget target)
 Where the generated file belongs, relative to the repository root.
 
std::string a11::flow::GenerateSyntax (SyntaxTarget target)
 Generates the target grammar from the Flow vocabulary.