1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

util:: parseint function

This commit is contained in:
Zeno Rogue 2021-02-04 14:58:47 +01:00
parent 41628cbd1a
commit 8c5c8f2c19

View File

@ -443,7 +443,13 @@ cld exp_parser::parse(int prio) {
EX ld parseld(const string& s) {
exp_parser ep;
ep.s = s;
return real(ep.parse());
return ep.rparse();
}
EX int parseint(const string& s) {
exp_parser ep;
ep.s = s;
return ep.iparse();
}
EX string available_functions() {