11 #if !defined(_ElftosbLexer_h_) 12 #define _ElftosbLexer_h_ 14 #include "ElftosbAST.h" 15 #include "FlexLexer.h" 16 #include "elftosb_parser.tab.hpp" 33 : std::runtime_error(__arg)
45 : std::runtime_error(__arg)
72 virtual void getSymbolValue(
YYSTYPE *value);
78 void addSourceName(std::string *ident);
79 bool isSourceName(std::string *ident);
89 typedef std::vector<std::string> string_vector_t;
93 virtual void LexerError(
const char *msg);
96 int processStringEscapes(
const char *in,
char *out);
101 #endif // _ElftosbLexer_h_ int m_line
Current line number.
Definition: ElftosbLexer.h:84
string_vector_t m_sources
Vector of source identifiers;.
Definition: ElftosbLexer.h:90
Definition: elftosb_parser.tab.cpp:238
token_loc_t m_location
Location for the current token.
Definition: ElftosbLexer.h:85
Definition: BootImage.h:13
Token location in the source file.
Definition: ElftosbAST.h:24
YYSTYPE m_symbolValue
Value for the current token.
Definition: ElftosbLexer.h:83
int m_blobFirstLine
Line number for the first character of a blob.
Definition: ElftosbLexer.h:87
Definition: FlexLexer.h:107
Manages a binary object of arbitrary length.
Definition: apps/elftosb/common/Blob.h:18
token_loc_t & getLocation()
Returns the current token's location in loc.
Definition: ElftosbLexer.h:75
Exception class for syntax errors.
Definition: ElftosbLexer.h:29
Blob * m_blob
The binary object value as its being constructed.
Definition: ElftosbLexer.h:86
Lexical scanner class for elftosb command files.
Definition: ElftosbLexer.h:62
Exception class for lexical errors.
Definition: ElftosbLexer.h:41