STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Lexer.hpp File Reference
#include <cstdint>
#include <string>
#include <vector>
#include "script/StateScript.hpp"
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  fsw::script::Token
struct  fsw::script::LexResult

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::script

Enumerations

enum class  fsw::script::Tok : uint8_t {
  fsw::script::Eof , fsw::script::Newline , fsw::script::Indent , fsw::script::Dedent ,
  fsw::script::Ident , fsw::script::Number , fsw::script::Colon , fsw::script::LParen ,
  fsw::script::RParen , fsw::script::Comma , fsw::script::Assign , fsw::script::Plus ,
  fsw::script::Minus , fsw::script::Star , fsw::script::Slash , fsw::script::Lt ,
  fsw::script::Le , fsw::script::Gt , fsw::script::Ge , fsw::script::EqEq ,
  fsw::script::Ne , fsw::script::KwIf , fsw::script::KwElif , fsw::script::KwElse ,
  fsw::script::KwWhile , fsw::script::KwAnd , fsw::script::KwOr , fsw::script::KwNot
}

Functions

const char * fsw::script::tok_name (Tok t)
LexResult fsw::script::lex (const std::string &source)
 Tokenize, emitting INDENT/DEDENT for block structure.