Library which helps annotate/highlight gcc
output.
$ npm install @wokwi/gcc-output-parser
const parser = require('@wokwi/gcc-output-parser');
console.log(parser.parseString(gccOutput));
Example output:
[ { filename: '/sketch/sketch.ino',
line: 6,
column: 3,
type: 'error',
text: "'digitalWire' was not declared in this scope",
codeWhitespace: ' ',
code: 'digitalWire(LED_BUILTIN, HIGH);',
adjustedColumn: 0,
startIndex: 47,
endIndex: 162,
parentFunction: 'void loop()'
} ]