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

Go to the source code of this file.

Classes

struct  a11::flow::StringEscape
 The source range of an escape inside a string token. More...
 
struct  a11::flow::Token
 One token: what it is, where it is, and what it holds. More...
 

Namespaces

namespace  a11
 
namespace  a11::flow
 

Enumerations

enum class  a11::flow::TokenKind {
  a11::flow::kNewline , a11::flow::kSemicolon , a11::flow::kComment , a11::flow::kString ,
  a11::flow::kNumber , a11::flow::kDuration , a11::flow::kWord , a11::flow::kDot ,
  a11::flow::kQuestionDot , a11::flow::kQuestionBracket , a11::flow::kRange , a11::flow::kSpread ,
  a11::flow::kArrow , a11::flow::kCarry , a11::flow::kEqual , a11::flow::kEqualEqual ,
  a11::flow::kBangEqual , a11::flow::kLess , a11::flow::kLessEqual , a11::flow::kGreater ,
  a11::flow::kGreaterEqual , a11::flow::kPlus , a11::flow::kMinus , a11::flow::kPipe ,
  a11::flow::kColon , a11::flow::kScope , a11::flow::kStar , a11::flow::kSlash ,
  a11::flow::kPercent , a11::flow::kComma , a11::flow::kLeftBrace , a11::flow::kRightBrace ,
  a11::flow::kLeftParen , a11::flow::kRightParen , a11::flow::kLeftBracket , a11::flow::kRightBracket ,
  a11::flow::kBad , a11::flow::kEnd
}
 What kind of thing a token is. More...
 

Functions

std::string_view a11::flow::KindName (TokenKind kind)
 The name of a kind, as a11.flow.lexer spells it.
 
TokenKind a11::flow::KindFromName (std::string_view name)
 The kind a name from [KindName] refers to, or kBad if it is not one.