preprocessor/src
Sébastien Villemot 487c372900
Macroprocessor: fix newlines in output when under Windows and input uses CR+LF convention
If the input .mod file uses CR+LF convention, and if the user is under Windows,
then the output of the macroprocessor (as given by the “savemacro” option) had
incorrect end of lines: those would be CR+CR+LF.

The reason is that some TextNode(s) internally created by the macroprocessor
would themselves contain CR+LF sequences, which would then be transformed into
CR+CR+LF in the output (because MinGW transforms LF into CR+LF in output
streams).

The fix consists in changing the nature of the EOL token: the parsed text is no
longer attached to it, so that the Bison file now systematically turns it into
a LF inside TextNode(s).

Closes: #80
2021-11-19 14:55:12 +01:00
..
macro Macroprocessor: fix newlines in output when under Windows and input uses CR+LF convention 2021-11-19 14:55:12 +01:00
CodeInterpreter.hh Remove support for obsolete syntax: var_model(order = 2) X Y Z; 2021-07-07 18:26:09 +02:00
ComputingTasks.cc PAC: refactor with new PacModelTable that replaces PacModelStatement(s) 2021-10-29 14:11:30 +02:00
ComputingTasks.hh PAC: refactor with new PacModelTable that replaces PacModelStatement(s) 2021-10-29 14:11:30 +02:00
ConfigFile.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
ConfigFile.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
DataTree.cc Use NumConstNode* type for DataTree constants (previously they were just expr_t) 2021-07-21 17:53:54 +02:00
DataTree.hh Use NumConstNode* type for DataTree constants (previously they were just expr_t) 2021-07-21 17:53:54 +02:00
Doxyfile move files to src directory 2018-02-15 11:48:04 +01:00
DynamicModel.cc PAC: trap a few more cases when an auxiliary param conflicts with a declared one 2021-11-09 15:48:59 +01:00
DynamicModel.hh PAC: rethink the relation between PacModelTable and DynamicModel classes 2021-10-29 14:11:30 +02:00
DynareBison.yy Remove unused steady_state_growth option to pac_model 2021-09-22 16:26:42 +02:00
DynareFlex.ll Remove unused steady_state_growth option to pac_model 2021-09-22 16:26:42 +02:00
DynareMain.cc New preprocessor option “nocommutativity” 2021-07-13 14:35:10 +02:00
EquationTags.cc Implement “occbin_constraints” block 2021-07-16 11:34:27 +02:00
EquationTags.hh Implement “occbin_constraints” block 2021-07-16 11:34:27 +02:00
ExprNode.cc Minor simplification in ExprNode::matchLinearCombinationOfVariables() 2021-10-29 15:39:40 +02:00
ExprNode.hh Remove implementation of various methods of PacExpectationNode 2021-10-29 14:11:30 +02:00
ExtendedPreprocessorTypes.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
ExternalFunctionsTable.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
ExternalFunctionsTable.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
MacroExpandModFile.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
Makefile.am Rename preprocessor binary to dynare-preprocessor 2021-01-06 17:08:42 +01:00
ModFile.cc PAC: refactor with new PacModelTable that replaces PacModelStatement(s) 2021-10-29 14:11:30 +02:00
ModFile.hh PAC: refactor with new PacModelTable that replaces PacModelStatement(s) 2021-10-29 14:11:30 +02:00
ModelEquationBlock.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
ModelEquationBlock.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
ModelTree.cc Improve message for GCC installation under macOS 2021-10-08 12:59:17 +02:00
ModelTree.hh Fix use_dll on macOS + Octave 2021-09-13 16:50:13 +02:00
NumericalConstants.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
NumericalConstants.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
NumericalInitialization.cc Cosmetic changes 2021-07-22 16:49:59 +02:00
NumericalInitialization.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
ParsingDriver.cc PAC: refactor with new PacModelTable that replaces PacModelStatement(s) 2021-10-29 14:11:30 +02:00
ParsingDriver.hh Fix error message when using pac_expectation with occbin_constraints 2021-10-29 14:11:08 +02:00
Shocks.cc Add shocks(surprise) block (for occbin) 2021-07-13 21:55:31 +02:00
Shocks.hh Add shocks(surprise) block (for occbin) 2021-07-13 21:55:31 +02:00
SigmaeInitialization.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
SigmaeInitialization.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
Statement.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
Statement.hh Implement “occbin_constraints” block 2021-07-16 11:34:27 +02:00
StaticModel.cc add NNZderivatives to JSON + use AbstractVector for Julia functions 2021-10-06 17:45:11 +02:00
StaticModel.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
SubModel.cc PAC: rethink the relation between PacModelTable and DynamicModel classes 2021-10-29 14:11:30 +02:00
SubModel.hh PAC: rethink the relation between PacModelTable and DynamicModel classes 2021-10-29 14:11:30 +02:00
SymbolList.cc Remove support for obsolete syntax: var_model(order = 2) X Y Z; 2021-07-07 18:26:09 +02:00
SymbolList.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
SymbolTable.cc JSON: fix syntax error in the aux vars table introduced in a7fb198463 2021-10-26 12:31:01 +02:00
SymbolTable.hh Remove support for obsolete syntax: var_model(order = 2) X Y Z; 2021-07-07 18:26:09 +02:00
VariableDependencyGraph.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
VariableDependencyGraph.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
WarningConsolidation.cc Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00
WarningConsolidation.hh Use secure URL for link to GNU licenses 2021-06-09 17:21:00 +02:00