squaresLab / Rooibos

2 stars 0 forks source link

Handle "fuzzy" matching for invalid syntax #37

Open rvantonder opened 6 years ago

rvantonder commented 6 years ago
[DEBUG ROOIBOS] source: 'if (frame_free >= next_md_begin) {\n\n    memcpy(*stream->main_data,\n\n\t   stream->next_frame - next_md_begin, next_md_begin);'
[DEBUG ROOIBOS] match template: 'memcpy(:[1], :[2], :[_]);'                     
[DEBUG ROOIBOS] rewrite template: '\n// ROOIBOS START\nmemcpy(:[1], :[2], 1);\n// ROOIBOS END\n'