mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 07:11:12 -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
|
@ -9,15 +9,10 @@
|
|||
%name{Slic3r::GCode::PlaceholderParser} class PlaceholderParser {
|
||||
PlaceholderParser();
|
||||
~PlaceholderParser();
|
||||
Clone<PlaceholderParser> clone()
|
||||
%code{% RETVAL = THIS; %};
|
||||
|
||||
void update_timestamp();
|
||||
void apply_env_variables();
|
||||
void apply_config(DynamicPrintConfig *config)
|
||||
%code%{ THIS->apply_config(*config); %};
|
||||
void set(std::string key, std::string value);
|
||||
%name{set_multiple} void set(std::string key, std::vector<std::string> values);
|
||||
void set(std::string key, int value);
|
||||
std::string process(std::string str) const
|
||||
%code%{ RETVAL = THIS->process(str, 0); %};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue