bubnikv
fa3d138e91
Fix of the previous commit: Fixed number of unit tests to be executed.
2020-01-21 13:13:52 +01:00
bubnikv
05ea01bdcc
Ported PlaceholderParser unit tests to C++.
2020-01-21 12:10:09 +01:00
Matthias Urlichs
329ad97a84
Add int() and % (modulo)
2019-12-04 09:32:22 +01:00
bubnikv
7645e9cb7a
Added layer_num, layer_z variables to the end_gcode, end_filament_gcode,
...
added min(.,.), max(.,.) functions to the placeholder parser syntax.
2018-05-15 14:04:29 +02:00
Lukas Matena
7951349a1f
Another t-test change to avoid fails
2018-03-28 10:32:23 +02:00
Lukas Matena
0d2637fede
t tests changed so they don't fail on the extruder number check
2018-03-28 10:16:04 +02:00
bubnikv
b4483fdcbd
Fix of "Conditional gcode with "<=" condition fails"
...
https://github.com/prusa3d/Slic3r/issues/683
2018-02-02 11:49:09 +01:00
bubnikv
9d3ade81fa
Fixed placeholder parser tests.
2017-12-21 17:27:24 +01:00
bubnikv
a402b1b83d
Implemented <,>,<=,>=,or,and,||,&& operators.
2017-12-19 16:48:14 +01:00
bubnikv
bb61de8379
Fixed a regression error: The "current_extruder" identifier was not set
...
at the placeholder parser.
Implemented a new PlaceholderParser::evaluate_boolean_expression()
functionality to evaluate just a boolean expression using the full
expressive power of the macro processing syntax. This function
will now be used for deciding, which print or filament preset
is compatible with which printer preset.
2017-12-18 12:14:09 +01:00
bubnikv
ae118519ab
Fixed a 32bit build bug in the new PlaceholderParser macro processor.
2017-11-29 19:27:26 +01:00
bubnikv
6729dc1c6d
Fixed a failing PlaceholderParser test case.
2017-11-29 16:35:48 +01:00
bubnikv
0ddbfccb08
Added some test cases for the conditional G-code math calculator.
...
https://github.com/prusa3d/Slic3r/issues/438
2017-11-28 19:56:32 +01:00
bubnikv
672194b475
Ported the between_objects_gcode custom G-code blocks,
...
thanks @lordofhyphens, https://github.com/alexrj/Slic3r/pull/3275
Improved handling of custom G-code blocks: Slic3r will try to extract
the target extruder and bed temperatures from the custom G-code blocks.
2017-11-28 15:19:57 +01:00
bubnikv
b54a15faa2
Fix of the new PlaceholderParser: Maintain whitespaces and new lines.
2017-11-26 20:43:31 +01:00
bubnikv
708f416c84
PlaceholderParser extended with {if}/{elsif}{else} blocks and
...
+ - * / == != <> numeric expressions.
2017-11-26 09:59:14 +01:00
bubnikv
47f193fe2d
The PlaceholderParser has been rewritten to use
...
a real boost::spirit::qi parser, accessing the DynamicConfig repository
directly. This is a first step towards a full fledged expression
interpreter.
2017-11-17 11:15:46 +01:00
bubnikv
2455aee97c
Further reduction of Perl Config.pm methods.
2017-10-27 18:52:35 +02:00
bubnikv
401059066e
Switched to Perl local::lib for local compilation.
...
Taken from upstream Slic3r, thanks @alexrj.
2017-08-18 09:58:50 +02:00
Alessandro Ranellucci
6a90fceaaf
Ported expanded_output_filepath() to C++/XS
2017-02-28 10:38:32 +01:00
Alessandro Ranellucci
580d28d071
Finished porting PlaceholderParser to XS
2015-07-01 19:35:22 +02:00
Alessandro Ranellucci
63af442e3e
Bugfix: [layer_num] was out of order because of support material layers having their order numbers. Now we use a unique continuous series. Includes regression test. #2634
2015-05-03 21:41:30 +02:00
Y. Sapir
09357e5868
A few improvements to gcode placeholder tests.
2014-06-13 14:02:09 +03:00
Alessandro Ranellucci
7ba08c90cf
Refactoring to Model API for making it stricter and safer
2014-05-09 14:24:35 +02:00
Alessandro Ranellucci
7a9dec3720
One more change to multi-value placeholders: indices start from 0. #1899
2014-04-29 17:12:00 +02:00
Alessandro Ranellucci
a4b6075600
Fixed regression and ambiguity about multiple-value placeholders like [first_layer_temperature_1]. Includes several unit tests covering regression. #1899
2014-04-29 17:06:31 +02:00
Alessandro Ranellucci
34f1511e0c
Better fix for non-global options not being replaced in filename placeholders. Includes refactoring and a new PlaceholderParser class. Also includes regression tests. #1831
2014-03-17 00:39:07 +01:00
Alessandro Ranellucci
73c05a6092
Moved vibration limit to its own G-code filter
2013-08-28 20:37:56 +02:00
Alessandro Ranellucci
baa1a8c736
Move Slic3r::Test::GCodeReader to Slic3r::GCode::Reader
2013-05-13 20:14:33 +02:00
Alessandro Ranellucci
06a592f25e
Update tests
2013-03-09 22:05:41 +01:00
Alessandro Ranellucci
db754dca4d
Add unit test to check that nested config options work
2012-12-23 15:56:13 +01:00
Alessandro Ranellucci
ea304a4803
Bugfix: custom layer G-code was applied before Z change, and not after like it was documented. #869
2012-12-20 17:01:01 +01:00