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 {
|
|
|
|
|
public:
|
|
|
|
|
SpyReader(std::string content, size_t chunk_size);
|
|
|
|
|
|
|
|
|
|
std::string content;
|
|
|
|
|
size_t position;
|
|
|
|
|
size_t chunk_size;
|
2014-06-28 18:56:04 -07:00
|
|
|
TSInput input;
|
2014-03-18 13:23:00 -07:00
|
|
|
std::vector<std::string> strings_read;
|
2014-03-10 13:25:31 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // HELPERS_SPY_READER_H_
|