2014-03-10 13:25:31 -07:00
|
|
|
#ifndef HELPERS_SPY_READER_H_
|
|
|
|
|
#define HELPERS_SPY_READER_H_
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include "tree_sitter/runtime.h"
|
|
|
|
|
|
|
|
|
|
class SpyReader {
|
2014-08-06 13:00:35 -07:00
|
|
|
public:
|
|
|
|
|
SpyReader(std::string content, size_t chunk_size);
|
2014-03-10 13:25:31 -07:00
|
|
|
|
2014-09-03 07:09:15 -07:00
|
|
|
void clear();
|
|
|
|
|
|
2014-08-06 13:00:35 -07:00
|
|
|
std::string content;
|
|
|
|
|
size_t position;
|
|
|
|
|
size_t chunk_size;
|
|
|
|
|
TSInput input;
|
|
|
|
|
std::vector<std::string> strings_read;
|
2014-03-10 13:25:31 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // HELPERS_SPY_READER_H_
|