| 234 | std::ostream& err; |
| 235 | |
| 236 | int fillBuffer(char* lexBuf, unsigned int lexBufSize) { |
| 237 | if (pos >= length) |
| 238 | return 0; |
| 239 | int num = std::min(length - pos, lexBufSize); |
| 240 | memcpy(lexBuf,buf+pos,num); |
| 241 | pos += num; |
| 242 | return num; |
| 243 | } |
| 244 | |
| 245 | void output(std::string x, AST::Node* n) { |
| 246 | _output.push_back(std::pair<std::string,AST::Node*>(x,n)); |