esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
lexer.hpp File Reference

protogen tokenizer for the proto3 subset. More...

#include <string>
#include <vector>
Include dependency graph for lexer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  protogen::Token
 

Namespaces

namespace  protogen
 

Enumerations

enum class  protogen::TokKind {
  protogen::Identifier , protogen::Number , protogen::String , protogen::Symbol ,
  protogen::End
}
 

Functions

std::vector< Tokenprotogen::lex (const std::string &src, const std::string &filename)
 Tokenize proto source. Throws std::runtime_error on a lexical error.
 

Detailed Description

protogen tokenizer for the proto3 subset.

Comments (// and block) are stripped.