39 #ifndef _EMBEDDED_RPC__ERPCLEXER_H_ 40 #define _EMBEDDED_RPC__ERPCLEXER_H_ 44 #include "ParseErrors.h" 45 #include <FlexLexer.h> 55 #define YY_BUF_SIZE 16384 66 #include "erpcgen_parser.tab.hpp" 88 CurrentFileInfo(std::ifstream *savedFile, std::string fileName, std::string currentFolderPath)
89 : m_savedFile(savedFile)
93 , m_fileName(fileName)
94 , m_currentFolderPath(currentFolderPath)
105 m_savedFile->close();
106 m_savedFile.safe_delete();
150 virtual Token *getNextToken();
166 void pushFile(
const std::string &fileName);
178 inline std::string &
getFileName() {
return m_currentFileInfo->m_fileName; }
201 virtual void LexerError(
const char *msg);
215 int processStringEscapes(
const char *in,
char *out);
246 #endif // _EMBEDDED_RPC__ERPCLEXER_H_ CurrentFileInfo * m_currentFileInfo
Definition: ErpcLexer.h:190
Lexical scanner class for erpcgen interface files.
Definition: ErpcLexer.h:125
CurrentFileInfo * m_previous
Definition: ErpcLexer.h:110
std::string & getFileName()
return current file name
Definition: ErpcLexer.h:178
std::string m_fileName
Definition: ErpcLexer.h:113
std::string m_currentFolderPath
Definition: ErpcLexer.h:114
~CurrentFileInfo()
Destructor.
Definition: ErpcLexer.h:103
Abstract base class for values of arbitrary types.
Definition: Value.h:47
token_loc_t m_location
Definition: ErpcLexer.h:189
token_loc_t & getLocation()
returns the current token's location in loc.
Definition: ErpcLexer.h:157
uint16_t getIdlCrc16()
This function returns crc16 of all used IDL files.
Definition: ErpcLexer.h:185
uint32_t m_indents
Definition: ErpcLexer.h:191
CurrentFileInfo(std::ifstream *savedFile, std::string fileName, std::string currentFolderPath)
Constructor.
Definition: ErpcLexer.h:88
Value * m_value
Definition: ErpcLexer.h:188
Encapsulates all information about a token.
Definition: Token.h:86
int m_column
Definition: ErpcLexer.h:112
int m_line
Definition: ErpcLexer.h:111
Token location in the source file.
Definition: Token.h:51
uint16_t m_idlCrc16
Definition: ErpcLexer.h:192
smart_ptr< std::ifstream > m_savedFile
Definition: ErpcLexer.h:109
This class contains necessary information about analyzed file.
Definition: ErpcLexer.h:75