Aprepro  5.0x
aprepro.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 
7 // Might be good to add a callback function which would be called
8 // when there was output -- In LexerOutput for example. Default
9 // could be to just write to std::cout or to resultsOutput stringstream...
10 
11 #ifndef SEAMS_DRIVER_H
12 #define SEAMS_DRIVER_H
13 
14 #include <cstdlib>
15 #include <iostream>
16 #include <ostream>
17 #include <sstream>
18 #include <stack>
19 #include <string>
20 #include <vector>
21 
22 #include <cmath>
23 #ifndef math_errhandling
24 #define math_errhandling MATH_ERRNO
25 #endif
26 
27 #if defined(_MSC_VER)
28 #include <io.h>
29 #define isatty _isatty
30 #endif
31 
32 /** The SEAMS namespace is used to encapsulate the three parser classes
33  * SEAMS::Parser, SEAMS::Scanner and SEAMS::Aprepro */
34 namespace SEAMS {
35 
36  struct array
37  {
38  std::vector<double> data{};
39  int rows{0};
40  int cols{0};
41 
42  array(int r, int c) : rows(r), cols(c) { data.resize(r * c); }
43  array() = default;
44  ~array() = default;
45  };
46 
47  struct symrec
48  {
49  std::string name{};
50  std::string syntax{};
51  std::string info{};
52  int type;
53  bool isInternal;
54  struct value
55  {
56  double var{0};
57  double (*fnctptr)(){nullptr};
58  double (*fnctptr_d)(double){nullptr};
59  double (*fnctptr_c)(char *){nullptr};
60  double (*fnctptr_dc)(double, char *){nullptr};
61  double (*fnctptr_cd)(char *, double){nullptr};
62  double (*fnctptr_cc)(char *, char *){nullptr};
63  double (*fnctptr_dd)(double, double){nullptr};
64  double (*fnctptr_ddd)(double, double, double){nullptr};
65  double (*fnctptr_ccc)(char *, char *, char *){nullptr};
66  double (*fnctptr_ccd)(char *, char *, double){nullptr};
67  double (*fnctptr_dddd)(double, double, double, double){nullptr};
68  double (*fnctptr_ddddc)(double, double, double, double, char *){nullptr};
69  double (*fnctptr_dddddd)(double, double, double, double, double, double){nullptr};
70  double (*fnctptr_a)(const array *){nullptr};
71  std::string svar{};
72  const char *(*strfnct)(){nullptr};
73  const char *(*strfnct_c)(char *){nullptr};
74  const char *(*strfnct_d)(double){nullptr};
75  const char *(*strfnct_a)(const array *){nullptr};
76  const char *(*strfnct_dd)(double, double){nullptr};
77  const char *(*strfnct_cc)(char *, char *){nullptr};
78  const char *(*strfnct_ccc)(char *, char *, char *){nullptr};
79  const char *(*strfnct_dcc)(double, char *, char *){nullptr};
80  const char *(*strfnct_dcccc)(double, char *, char *, char *, char *){nullptr};
81  array *avar{nullptr}; /* Array Variable */
82  array *(*arrfnct_c)(const char *){nullptr};
83  array *(*arrfnct_cc)(const char *, const char *){nullptr};
84  array *(*arrfnct_cd)(const char *, double){nullptr};
85  array *(*arrfnct_ddd)(double, double, double){nullptr};
86  array *(*arrfnct_dd)(double, double){nullptr};
87  array *(*arrfnct_d)(double){nullptr};
88  array *(*arrfnct_a)(const array *){nullptr};
89 
90  value() = default;
91  } value;
93 
94  symrec(const char *my_name, int my_type, bool is_internal = false)
95  : name(my_name), syntax(my_name), info("UNDEFINED"), type(my_type), isInternal(is_internal),
96  next(nullptr)
97  {
98  value.var = 0;
99  }
100 
101  symrec(const std::string &my_name, int my_type, bool is_internal = false)
102  : name(my_name), syntax(my_name), info("UNDEFINED"), type(my_type), isInternal(is_internal),
103  next(nullptr)
104  {
105  value.var = 0;
106  }
107  };
108 
109  /* Global options */
111  {
112  std::string include_path{};
113  std::string include_file{};
114  bool end_on_exit{false};
115  bool errors_fatal{false};
117  bool warning_msg{true};
118  bool info_msg{false};
119  bool debugging{false};
120  bool dumpvars{false};
121  bool interactive{false};
122  bool immutable{false};
123  bool trace_parsing{false}; // enable debug output in the bison parser
124  bool one_based_index{false};
125  bool keep_history{false}; // Flag to keep a history of Aprepro substitutions
126  aprepro_options() = default;
127  };
128 
129  /* Structure for holding file names and line counters */
130  struct file_rec
131  {
132  std::string name{"STDIN"};
133  int lineno{0};
134  int loop_count{0};
135  bool tmp_file{false};
136 
137  file_rec(const char *my_name, int line_num, bool is_temp, int loop_cnt)
138  : name(my_name), lineno(line_num), loop_count(loop_cnt), tmp_file(is_temp)
139  {
140  }
141  file_rec() = default;
142  };
143 
144  /* Structure for holding aprepro substitution info */
146  {
147  std::string original;
148  std::string substitution;
149  std::streampos index; // Character index in the output where the substitution begins.
150  };
151 
152  /** The Aprepro class brings together all components. It creates an instance of
153  * the Parser and Scanner classes and connects them. Then the input stream is
154  * fed into the scanner object and the parser gets it's token
155  * sequence. Furthermore the aprepro object is available in the grammar rules as
156  * a parameter. Therefore the aprepro class contains a reference to the
157  * structure into which the parsed data is saved. */
158  class Aprepro
159  {
160  public:
161  /// construct a new parser aprepro context
162  Aprepro();
163  ~Aprepro();
164 
165  enum class SYMBOL_TYPE {
166  VARIABLE = 1,
167  STRING_VARIABLE = 2,
168  UNDEFINED_VARIABLE = 5,
169  FUNCTION = 3,
170  STRING_FUNCTION = 4,
171  ARRAY_FUNCTION = 6,
172  ARRAY_VARIABLE = 7,
173  IMMUTABLE_VARIABLE = 11,
175  };
176 
177  bool state_is_immutable() const { return stateImmutable; }
178 
179  /** Return an std::ostringstream reference to get the results of
180  the parse_* call (* = stream, file, or string).
181  */
182  const std::ostringstream &parsing_results() const { return parsingResults; }
183  void clear_results();
184 
185  /** Return string representation of current version of aprepro. */
186  std::string version() const;
187 
188  /** Invoke the scanner and parser for a stream.
189  * @param in input stream
190  * @param in_name stream name for error messages
191  * @return true if successfully parsed
192  */
193  bool parse_stream(std::istream &in, const std::string &in_name = "stream input");
194 
195  /** Invoke the scanner and parser on an input string.
196  * @param input input string
197  * @param sname stream name for error messages
198  * @return true if successfully parsed
199  */
200  bool parse_string(const std::string &input, const std::string &sname = "string stream");
201 
202  /** Invoke the scanner and parser on a vector of strings.
203  * @param input vector of input strings
204  * @param sname stream name for error messages
205  * @return true if successfully parsed
206  */
207  bool parse_strings(const std::vector<std::string> &input, const std::string &sname);
208 
209  /** Invoke the scanner and parser on an input string in an
210  * interactive manner.
211  * @param input input stringInput
212  * @return true if successfully parsed
213  */
214  bool parse_string_interactive(const std::string &input);
215 
216  /** Get the string interactive flag, which indicates if we are in
217  * the middle of parsing a string in an interactive manner.
218  */
220 
221  /** Invoke the scanner and parser on a file. Use parse_stream with a
222  * std::ifstream if detection of file reading errors is required.
223  * @param filename input file name
224  * @return true if successfully parsed
225  */
226  bool parse_file(const std::string &filename);
227 
228  void statistics(std::ostream *out = nullptr) const;
229 
231  std::stack<file_rec> ap_file_list{};
232 
233  std::stack<std::ostream *> outputStream{};
234 
235  SEAMS::symrec *getsym(const char *sym_name) const;
236  SEAMS::symrec *getsym(const std::string &sym_name) const;
237  SEAMS::symrec *putsym(const std::string &sym_name, SYMBOL_TYPE sym_type, bool is_internal);
238 
239  void add_variable(const std::string &sym_name, const std::string &sym_value,
240  bool immutable = false, bool internal = false);
241  void add_variable(const std::string &sym_name, double sym_value, bool immutable = false,
242  bool internal = false);
243  void add_variable(const std::string &sym_name, array *value);
244 
245  std::vector<std::string> get_variable_names(bool doInternal = false);
246  void remove_variable(const std::string &sym_name);
247 
248  int set_option(const std::string &option, const std::string &optional_value = std::string(""));
249 
250  std::fstream *open_file(const std::string &file, const char *mode);
251  std::fstream *check_open_file(const std::string &file, const char *mode);
252 
253  /** Pointer to the current lexer instance, this is used to connect the
254  * parser to the scanner. It is used in the yylex macro. */
255  class Scanner *lexer{nullptr};
256 
257  /** Error handling. */
258  int get_error_count() const
259  {
260  return parseErrorCount;
261  } /** Return number of errors reported during parse */
262  int get_warning_count() const
263  {
264  return parseWarningCount;
265  } /** Return number of warnings reported during parse */
266  void error(const std::string &msg, bool line_info = true, bool prefix = true) const;
267  void warning(const std::string &msg, bool line_info = true, bool prefix = true) const;
268  void info(const std::string &msg, bool line_info = false, bool prefix = true) const;
269 
270  // The info stream. To only print out info messages if the -M option was
271  // specified, use info(...) instead.
272  std::ostream *infoStream{&std::cout};
273 
274  void set_error_streams(std::ostream *c_error, std::ostream *c_warning, std::ostream *c_info);
275 
276  void dumpsym(const char *type, bool doInternal) const;
277  void dumpsym(int type, bool doInternal) const;
278  void dumpsym(int type, const char *pre, bool doInternal) const;
279 
280  private:
281  void init_table(const char *comment);
282  std::vector<symrec *> sym_table{};
283  std::ostringstream parsingResults{};
284 
285  // Input stream used with parse_string_interactive
286  std::istringstream stringInput{};
287 
288  bool stringInteractive{false};
289  class Scanner *stringScanner{nullptr};
290 
291  // For error handling
292  std::ostream *errorStream{&std::cerr};
293  std::ostream *warningStream{&std::cerr};
294 
295  // For substitution history.
296  std::vector<history_data> history{};
297 
298  mutable int parseErrorCount{0};
299  mutable int parseWarningCount{0};
300 
301  public:
302  bool stateImmutable{false};
303 
304  // Flag to do Aprepro substitutions within loops. Default value is true. If set to
305  // false, content within the loop will be treated as verbatim text.
306  bool doLoopSubstitution{true};
307 
308  // Flag to do Aprepro substitutions when including a file. Default value is true.
309  // If set to false, content within the file will be treated as verbatim text that
310  // needs to be sent through Aprepro again later.
312 
313  // Flag to inidicate whether Aprepro is in the middle of collecting lines for a
314  // loop.
315  bool isCollectingLoop{false};
316 
317  // Record the substitution of the current Aprepro statement. This function will also
318  // reset the historyString and add an entry to the substitution map.
319  void add_history(const std::string &original, const std::string &substitution);
320 
321  // Used to avoid undefined variable warnings in old ifdef/ifndef construct
322  mutable bool inIfdefGetvar{false};
323 
324  const std::vector<history_data> &get_history();
325  void clear_history();
326  };
327 
328 } // namespace SEAMS
329 
330 #endif // SEAMS_DRIVER_H
SEAMS
Definition: apr_aprepro.cc:41
SEAMS::Aprepro::warning
void warning(const std::string &msg, bool line_info=true, bool prefix=true) const
Definition: apr_aprepro.cc:186
SEAMS::Aprepro::dumpsym
void dumpsym(const char *type, bool doInternal) const
Definition: apr_aprepro.cc:671
SEAMS::Aprepro::parsing_results
const std::ostringstream & parsing_results() const
Definition: aprepro.h:182
SEAMS::Aprepro::parse_stream
bool parse_stream(std::istream &in, const std::string &in_name="stream input")
Definition: apr_aprepro.cc:87
SEAMS::aprepro_options::one_based_index
bool one_based_index
Definition: aprepro.h:124
SEAMS::Aprepro::SYMBOL_TYPE::UNDEFINED_VARIABLE
@ UNDEFINED_VARIABLE
SEAMS::aprepro_options::aprepro_options
aprepro_options()=default
SEAMS::array
Definition: aprepro.h:37
SEAMS::Aprepro::parseErrorCount
int parseErrorCount
Definition: aprepro.h:298
SEAMS::Aprepro::clear_history
void clear_history()
Definition: apr_aprepro.cc:861
SEAMS::Aprepro::error
void error(const std::string &msg, bool line_info=true, bool prefix=true) const
Definition: apr_aprepro.cc:160
SEAMS::file_rec::file_rec
file_rec()=default
SEAMS::Aprepro::stringScanner
class Scanner * stringScanner
Definition: aprepro.h:289
SEAMS::Aprepro::version
std::string version() const
Definition: apr_aprepro.cc:79
SEAMS::Aprepro::infoStream
std::ostream * infoStream
Definition: aprepro.h:272
SEAMS::Aprepro::add_history
void add_history(const std::string &original, const std::string &substitution)
Definition: apr_aprepro.cc:843
SEAMS::Aprepro::sym_table
std::vector< symrec * > sym_table
Definition: aprepro.h:282
SEAMS::aprepro_options::dumpvars
bool dumpvars
Definition: aprepro.h:120
SEAMS::file_rec
Definition: aprepro.h:131
SEAMS::Aprepro::outputStream
std::stack< std::ostream * > outputStream
Definition: aprepro.h:233
SEAMS::Aprepro::ap_file_list
std::stack< file_rec > ap_file_list
Definition: aprepro.h:231
SEAMS::Aprepro::info
void info(const std::string &msg, bool line_info=false, bool prefix=true) const
Definition: apr_aprepro.cc:217
SEAMS::symrec::value::fnctptr_c
double(* fnctptr_c)(char *)
Definition: aprepro.h:59
SEAMS::file_rec::loop_count
int loop_count
Definition: aprepro.h:134
SEAMS::symrec::value::fnctptr_cc
double(* fnctptr_cc)(char *, char *)
Definition: aprepro.h:62
SEAMS::symrec::isInternal
bool isInternal
Definition: aprepro.h:53
SEAMS::symrec::value
struct SEAMS::symrec::value value
SEAMS::aprepro_options::debugging
bool debugging
Definition: aprepro.h:119
SEAMS::Aprepro::lexer
class Scanner * lexer
Definition: aprepro.h:255
SEAMS::symrec
Definition: aprepro.h:48
SEAMS::symrec::value::fnctptr_dddd
double(* fnctptr_dddd)(double, double, double, double)
Definition: aprepro.h:67
SEAMS::Aprepro::clear_results
void clear_results()
Definition: apr_aprepro.cc:81
SEAMS::symrec::value::var
double var
Definition: aprepro.h:56
SEAMS::Aprepro::getsym
SEAMS::symrec * getsym(const char *sym_name) const
Definition: apr_aprepro.cc:658
SEAMS::aprepro_options::end_on_exit
bool end_on_exit
Definition: aprepro.h:114
SEAMS::symrec::type
int type
Definition: aprepro.h:52
SEAMS::Aprepro::parseWarningCount
int parseWarningCount
Definition: aprepro.h:299
SEAMS::aprepro_options::include_file
std::string include_file
Definition: aprepro.h:113
SEAMS::array::rows
int rows
Definition: aprepro.h:39
SEAMS::symrec::value::fnctptr_ccd
double(* fnctptr_ccd)(char *, char *, double)
Definition: aprepro.h:66
SEAMS::Aprepro::set_error_streams
void set_error_streams(std::ostream *c_error, std::ostream *c_warning, std::ostream *c_info)
Definition: apr_aprepro.cc:246
SEAMS::Aprepro::inIfdefGetvar
bool inIfdefGetvar
Definition: aprepro.h:322
SEAMS::Aprepro::SYMBOL_TYPE::VARIABLE
@ VARIABLE
SEAMS::symrec::value::fnctptr_dd
double(* fnctptr_dd)(double, double)
Definition: aprepro.h:63
SEAMS::symrec::value::fnctptr_ccc
double(* fnctptr_ccc)(char *, char *, char *)
Definition: aprepro.h:65
SEAMS::Aprepro::SYMBOL_TYPE::STRING_VARIABLE
@ STRING_VARIABLE
SEAMS::symrec::value::fnctptr_cd
double(* fnctptr_cd)(char *, double)
Definition: aprepro.h:61
SEAMS::Aprepro::parse_string_interactive
bool parse_string_interactive(const std::string &input)
Definition: apr_aprepro.cc:130
SEAMS::aprepro_options
Definition: aprepro.h:111
SEAMS::Aprepro::SYMBOL_TYPE::IMMUTABLE_VARIABLE
@ IMMUTABLE_VARIABLE
SEAMS::Aprepro::stringInteractive
bool stringInteractive
Definition: aprepro.h:288
SEAMS::Aprepro::get_error_count
int get_error_count() const
Definition: aprepro.h:258
SEAMS::Aprepro::~Aprepro
~Aprepro()
Definition: apr_aprepro.cc:53
SEAMS::symrec::value::fnctptr
double(* fnctptr)()
Definition: aprepro.h:57
SEAMS::aprepro_options::immutable
bool immutable
Definition: aprepro.h:122
SEAMS::Aprepro::set_option
int set_option(const std::string &option, const std::string &optional_value=std::string(""))
Definition: apr_aprepro.cc:385
SEAMS::symrec::value::fnctptr_dc
double(* fnctptr_dc)(double, char *)
Definition: aprepro.h:60
SEAMS::symrec::symrec
symrec(const char *my_name, int my_type, bool is_internal=false)
Definition: aprepro.h:94
SEAMS::Aprepro::SYMBOL_TYPE::FUNCTION
@ FUNCTION
SEAMS::Aprepro::SYMBOL_TYPE::STRING_FUNCTION
@ STRING_FUNCTION
SEAMS::symrec::value
Definition: aprepro.h:55
SEAMS::file_rec::lineno
int lineno
Definition: aprepro.h:133
SEAMS::symrec::value::svar
std::string svar
Definition: aprepro.h:71
SEAMS::Aprepro::statistics
void statistics(std::ostream *out=nullptr) const
Definition: apr_aprepro.cc:788
SEAMS::Aprepro::open_file
std::fstream * open_file(const std::string &file, const char *mode)
Definition: apr_aprepro.cc:268
SEAMS::symrec::info
std::string info
Definition: aprepro.h:51
SEAMS::file_rec::tmp_file
bool tmp_file
Definition: aprepro.h:135
SEAMS::Aprepro::putsym
SEAMS::symrec * putsym(const std::string &sym_name, SYMBOL_TYPE sym_type, bool is_internal)
Definition: apr_aprepro.cc:322
SEAMS::aprepro_options::keep_history
bool keep_history
Definition: aprepro.h:125
SEAMS::Aprepro::errorStream
std::ostream * errorStream
Definition: aprepro.h:292
SEAMS::aprepro_options::interactive
bool interactive
Definition: aprepro.h:121
SEAMS::Aprepro::parse_string
bool parse_string(const std::string &input, const std::string &sname="string stream")
Definition: apr_aprepro.cc:115
SEAMS::Aprepro::history
std::vector< history_data > history
Definition: aprepro.h:296
SEAMS::Aprepro::SYMBOL_TYPE::ARRAY_FUNCTION
@ ARRAY_FUNCTION
SEAMS::aprepro_options::include_path
std::string include_path
Definition: aprepro.h:112
SEAMS::Aprepro::isCollectingLoop
bool isCollectingLoop
Definition: aprepro.h:315
SEAMS::array::array
array(int r, int c)
Definition: aprepro.h:42
SEAMS::symrec::symrec
symrec(const std::string &my_name, int my_type, bool is_internal=false)
Definition: aprepro.h:101
SEAMS::anonymous_namespace{apr_units.cc}::comment
std::string & comment()
Definition: apr_units.cc:23
SEAMS::Aprepro::add_variable
void add_variable(const std::string &sym_name, const std::string &sym_value, bool immutable=false, bool internal=false)
Definition: apr_aprepro.cc:525
SEAMS::array::cols
int cols
Definition: aprepro.h:40
SEAMS::symrec::value::fnctptr_ddddc
double(* fnctptr_ddddc)(double, double, double, double, char *)
Definition: aprepro.h:68
SEAMS::Aprepro::state_is_immutable
bool state_is_immutable() const
Definition: aprepro.h:177
SEAMS::Aprepro::SYMBOL_TYPE::ARRAY_VARIABLE
@ ARRAY_VARIABLE
SEAMS::history_data::index
std::streampos index
Definition: aprepro.h:149
SEAMS::aprepro_options::info_msg
bool info_msg
Definition: aprepro.h:118
SEAMS::aprepro_options::warning_msg
bool warning_msg
Definition: aprepro.h:117
SEAMS::aprepro_options::errors_fatal
bool errors_fatal
Definition: aprepro.h:115
SEAMS::symrec::syntax
std::string syntax
Definition: aprepro.h:50
SEAMS::Aprepro::parse_strings
bool parse_strings(const std::vector< std::string > &input, const std::string &sname)
Definition: apr_aprepro.cc:121
SEAMS::symrec::next
symrec * next
Definition: aprepro.h:92
SEAMS::Aprepro::parse_file
bool parse_file(const std::string &filename)
Definition: apr_aprepro.cc:106
SEAMS::Aprepro::stringInput
std::istringstream stringInput
Definition: aprepro.h:286
SEAMS::array::array
array()=default
SEAMS::Aprepro::ap_options
aprepro_options ap_options
Definition: aprepro.h:230
SEAMS::file_rec::file_rec
file_rec(const char *my_name, int line_num, bool is_temp, int loop_cnt)
Definition: aprepro.h:137
SEAMS::symrec::value::fnctptr_d
double(* fnctptr_d)(double)
Definition: aprepro.h:58
SEAMS::Aprepro::doLoopSubstitution
bool doLoopSubstitution
Definition: aprepro.h:306
SEAMS::history_data
Definition: aprepro.h:146
SEAMS::Aprepro::SYMBOL_TYPE::IMMUTABLE_STRING_VARIABLE
@ IMMUTABLE_STRING_VARIABLE
SEAMS::array::data
std::vector< double > data
Definition: aprepro.h:38
SEAMS::Aprepro::get_history
const std::vector< history_data > & get_history()
Definition: apr_aprepro.cc:859
SEAMS::Aprepro::check_open_file
std::fstream * check_open_file(const std::string &file, const char *mode)
Definition: apr_aprepro.cc:301
SEAMS::Aprepro::SYMBOL_TYPE
SYMBOL_TYPE
Definition: aprepro.h:165
SEAMS::symrec::name
std::string name
Definition: aprepro.h:49
SEAMS::Aprepro::parsingResults
std::ostringstream parsingResults
Definition: aprepro.h:283
SEAMS::Aprepro::doIncludeSubstitution
bool doIncludeSubstitution
Definition: aprepro.h:311
SEAMS::aprepro_options::errors_and_warnings_fatal
bool errors_and_warnings_fatal
Definition: aprepro.h:116
SEAMS::symrec::value::fnctptr_a
double(* fnctptr_a)(const array *)
Definition: aprepro.h:70
SEAMS::Aprepro::remove_variable
void remove_variable(const std::string &sym_name)
Definition: apr_aprepro.cc:612
SEAMS::aprepro_options::trace_parsing
bool trace_parsing
Definition: aprepro.h:123
SEAMS::Scanner
Definition: apr_scanner.h:35
SEAMS::symrec::value::fnctptr_dddddd
double(* fnctptr_dddddd)(double, double, double, double, double, double)
Definition: aprepro.h:69
SEAMS::Aprepro
Definition: aprepro.h:159
SEAMS::symrec::value::avar
array * avar
Definition: aprepro.h:81
SEAMS::Aprepro::get_variable_names
std::vector< std::string > get_variable_names(bool doInternal=false)
Definition: apr_aprepro.cc:582
SEAMS::Aprepro::warningStream
std::ostream * warningStream
Definition: aprepro.h:293
SEAMS::Aprepro::get_warning_count
int get_warning_count() const
Definition: aprepro.h:262
SEAMS::Aprepro::Aprepro
Aprepro()
construct a new parser aprepro context
Definition: apr_aprepro.cc:45
SEAMS::file_rec::name
std::string name
Definition: aprepro.h:132
SEAMS::Aprepro::string_interactive
bool string_interactive()
Definition: aprepro.h:219
SEAMS::Aprepro::stateImmutable
bool stateImmutable
Definition: aprepro.h:302
SEAMS::history_data::original
std::string original
Definition: aprepro.h:147
SEAMS::array::~array
~array()=default
SEAMS::history_data::substitution
std::string substitution
Definition: aprepro.h:148
SEAMS::symrec::value::fnctptr_ddd
double(* fnctptr_ddd)(double, double, double)
Definition: aprepro.h:64
SEAMS::Aprepro::init_table
void init_table(const char *comment)
Definition: apr_init.cc:365
SEAMS::symrec::value::value
value()=default