1883 |
} |
} |
1884 |
} |
} |
1885 |
|
|
1886 |
|
void ParserContext::registerBuiltInConstRealVariables(const std::map<String,vmfloat>& vars) { |
1887 |
|
for (std::map<String,vmfloat>::const_iterator it = vars.begin(); |
1888 |
|
it != vars.end(); ++it) |
1889 |
|
{ |
1890 |
|
ConstRealVariableRef ref = new ConstRealVariable({ |
1891 |
|
.value = it->second |
1892 |
|
}); |
1893 |
|
vartable[it->first] = ref; |
1894 |
|
} |
1895 |
|
} |
1896 |
|
|
1897 |
void ParserContext::registerBuiltInIntVariables(const std::map<String,VMIntPtr*>& vars) { |
void ParserContext::registerBuiltInIntVariables(const std::map<String,VMIntPtr*>& vars) { |
1898 |
for (std::map<String,VMIntPtr*>::const_iterator it = vars.begin(); |
for (std::map<String,VMIntPtr*>::const_iterator it = vars.begin(); |
1899 |
it != vars.end(); ++it) |
it != vars.end(); ++it) |