trick/include/trick/ChkPtParseContext.hh
Michael Vetter 18f0d7e871 Remove trailing whitespaces
Makes it easier to edit the files. So if we press 'end of line' we are
really at the end of line.
2016-11-08 10:25:07 +01:00

51 lines
1.4 KiB
C++

#ifndef CHKPT_PARSE_CONTEXT_H
#define CHKPT_PARSE_CONTEXT_H
#include <iostream>
#include <unistd.h>
#include "trick/MemoryManager.hh"
#include "trick/reference.h"
/**
* This class represents the Check Pointer Parser Context.
*/
class ChkPtParseContext {
public:
int debug ; /**< -- Debug level */
int verify_input; /**< -- Verify input runstream syntax flag */
int echo_input; /**< -- Echo Initialization Data flag */
std::istream *is; /**< ** Input Stream */
char *buf; /**< ** Temporary storage for strings */
void *scanner; /**< ** Flex scanner variable.*/
Trick::MemoryManager *mem_mgr; /**< ** Associated MemoryManager. */
int bad_declaration_count; /**< ** Number of bad declarations. */
int bad_assignment_count; /**< ** Number of bad assignments. */
char *save_str_pos; /**< ** saved position in current file */
char *error_str; /**< ** Unresolved reference name */
ChkPtParseContext(Trick::MemoryManager *mem_mgr, std::istream* is );
~ChkPtParseContext();
protected:
/**
Initialize the Flex Scanner.
*/
void init_scanner();
/**
Destroy the Flex Scanner.
*/
void destroy_scanner();
};
int CCP_parse( ChkPtParseContext* context);
#endif