WPILibC++ 2027.0.0-alpha-5
Loading...
Searching...
No Matches
wpi::util::structparser::Token Struct Reference

A lexed raw struct schema token. More...

#include <wpi/util/struct/SchemaParser.hpp>

Public Types

enum  Kind {
  UNKNOWN , INTEGER , IDENTIFIER , LEFT_BRACKET ,
  RIGHT_BRACKET , LEFT_BRACE , RIGHT_BRACE , COLON ,
  SEMICOLON , COMMA , EQUALS , END_OF_INPUT
}
 A lexed raw struct schema token kind. More...

Public Member Functions

 Token ()=default
 Token (Kind kind, std::string_view text)
bool Is (Kind k) const

Public Attributes

Kind kind = UNKNOWN
std::string_view text

Detailed Description

A lexed raw struct schema token.

Member Enumeration Documentation

◆ Kind

A lexed raw struct schema token kind.

Enumerator
UNKNOWN 

Unknown.

INTEGER 

Integer.

IDENTIFIER 

Identifier.

LEFT_BRACKET 

Left square bracket.

RIGHT_BRACKET 

Right square bracket.

LEFT_BRACE 

Left curly brace.

RIGHT_BRACE 

Right curly brace.

COLON 

Colon.

SEMICOLON 

Semicolon.

COMMA 

Comma.

EQUALS 

Equals.

END_OF_INPUT 

End of input.

Constructor & Destructor Documentation

◆ Token() [1/2]

wpi::util::structparser::Token::Token ( )
default

◆ Token() [2/2]

wpi::util::structparser::Token::Token ( Kind kind,
std::string_view text )
inline

Member Function Documentation

◆ Is()

bool wpi::util::structparser::Token::Is ( Kind k) const
inline

Member Data Documentation

◆ kind

Kind wpi::util::structparser::Token::kind = UNKNOWN

◆ text

std::string_view wpi::util::structparser::Token::text

The documentation for this struct was generated from the following file: