mirror of
https://github.com/nasa/trick.git
synced 2024-12-27 00:31:07 +00:00
18f0d7e871
Makes it easier to edit the files. So if we press 'end of line' we are really at the end of line.
28 lines
476 B
C++
28 lines
476 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "trick/RefParseContext.hh"
|
|
|
|
/**
|
|
Constructor
|
|
*/ RefParseContext::RefParseContext( Trick::MemoryManager *in_mem_mgr, std::istream* in_is = &std::cin ) {
|
|
|
|
// Set verif input and echo input flags.
|
|
verify_input = 0;
|
|
echo_input = 1;
|
|
|
|
// Initialize the scanner
|
|
init_scanner();
|
|
|
|
this->is = in_is;
|
|
this->mem_mgr = in_mem_mgr;
|
|
|
|
}
|
|
|
|
/**
|
|
Destructor
|
|
*/
|
|
RefParseContext::~RefParseContext() {
|
|
destroy_scanner();
|
|
}
|
|
|