WPILibC++ 2024.3.2
wpi::structparser::Lexer Class Reference

Raw struct schema lexer. More...

#include <wpi/struct/SchemaParser.h>

Public Member Functions

 Lexer (std::string_view in)
 Construct a raw struct schema lexer. More...
 
Token Scan ()
 Gets the next token. More...
 
size_t GetPosition () const
 Gets the starting position of the last lexed token. More...
 

Detailed Description

Raw struct schema lexer.

Constructor & Destructor Documentation

◆ Lexer()

wpi::structparser::Lexer::Lexer ( std::string_view  in)
inlineexplicit

Construct a raw struct schema lexer.

Parameters
inschema

Member Function Documentation

◆ GetPosition()

size_t wpi::structparser::Lexer::GetPosition ( ) const
inline

Gets the starting position of the last lexed token.

Returns
position (0 = first character)

◆ Scan()

Token wpi::structparser::Lexer::Scan ( )

Gets the next token.

Returns
Token

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