mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
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.
This commit is contained in:
parent
200f176951
commit
47f193fe2d
7 changed files with 534 additions and 144 deletions
|
@ -48,7 +48,7 @@ use Slic3r::Test;
|
|||
{
|
||||
my $parser = Slic3r::GCode::PlaceholderParser->new;
|
||||
$parser->apply_config(my $config = Slic3r::Config::new_from_defaults);
|
||||
$parser->set('foo' => '0');
|
||||
$parser->set('foo' => 0);
|
||||
is $parser->process('[temperature_[foo]]'),
|
||||
$config->temperature->[0],
|
||||
"nested config options";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue