A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
navigate.cc File Reference
#include "a11/flow/navigate.h"
#include <algorithm>
#include <cstddef>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <absl/strings/ascii.h>
#include <absl/strings/str_cat.h>
#include <absl/strings/str_join.h>
#include <absl/types/span.h>
#include "a11/flow/highlight.h"
#include "a11/flow/lexer.h"
#include "a11/flow/parser.h"
#include "a11/flow/resolve.h"
#include "a11/flow/vocabulary.h"

Namespaces

namespace  a11
 
namespace  a11::flow
 

Functions

std::string a11::flow::WordMarkdown (std::string_view name, vocabulary::WordRole role)
 One word or mark of the language, written out as reference: what it does, what it takes, how it behaves, and a line of Flow using it.
 
std::string a11::flow::StageMarkdown (std::string_view name)
 A pipeline stage, written out as reference.
 
std::string a11::flow::BuiltinMarkdown (std::string_view name)
 A built-in function, the same way.
 
std::string a11::flow::ActionMarkdown (const catalogue::ActionInfo &action)
 An action, written out as the Markdown a reader wants to see: what it does, then every port it has.
 
std::string a11::flow::PortMarkdown (std::string_view name, std::string_view type, bool required, bool unary, std::string_view description)
 One port, written out as the Markdown a reader wants beside its name.
 
std::string a11::flow::FlowMarkdown (const FlowPlan &flow)
 A flow of the document, written out the same way: what it does, then its ports and which direction each runs.
 
std::string a11::flow::ShapeMarkdown (const DtoPlan &shape)
 A struct, written out the same way: how many fields, then each of them.
 
std::string_view a11::flow::SymbolClassName (SymbolClass kind)
 
Range a11::flow::Widened (const LineIndex &lines, const Range &range, const Range &selection)
 The whole construct a declaration opens: its first token through the } that closes its block.
 
Range a11::flow::ConstructRange (const LineIndex &lines, absl::Span< const Token > tokens, const syntax::Location &opened, const Range &selection)
 
std::vector< DocumentSymbol > a11::flow::Symbols (std::string_view source)
 Every symbol a document declares, nested as it is written.
 
Description a11::flow::Describe (std::string_view source, size_t offset, const catalogue::Catalogue &known=catalogue::Catalogue::Builtin())
 What is at offset, and where it came from.