move constructing MlValues to clib from interpreter
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
|
||||
#include "../ml.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <regex>
|
||||
|
||||
class CsvParser {
|
||||
|
||||
@@ -18,6 +21,10 @@ public:
|
||||
|
||||
void parseCSV(const std::string &csvSource, std::vector< std::vector<std::string> > &lines);
|
||||
|
||||
MlValue ivalualize(std::vector< std::vector<std::string> > &parsed_data) const;
|
||||
private:
|
||||
void addLine(const std::vector<std::string> &line, std::vector< std::vector<std::string> > &lines);
|
||||
|
||||
bool is_string_int(const std::string &str) const;
|
||||
bool is_string_float(const std::string &str) const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user