https://github.com/particle-iot/gcc-output-parser
gcc error parsing library
https://github.com/particle-iot/gcc-output-parser
gcc javascript node-js parser
Last synced: 10 months ago
JSON representation
gcc error parsing library
- Host: GitHub
- URL: https://github.com/particle-iot/gcc-output-parser
- Owner: particle-iot
- Created: 2015-06-03T13:37:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T14:39:06.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T08:18:15.041Z (10 months ago)
- Topics: gcc, javascript, node-js, parser
- Language: JavaScript
- Homepage:
- Size: 727 KB
- Stars: 20
- Watchers: 44
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcc output parser library
[](https://app.circleci.com/pipelines/github/particle-iot/gcc-output-parser)
Library which helps annotate/highlight `gcc` output.
[Installation](#installation) | [Usage](#usage) | [Releasing](#releasing)
## Installation
```shell
$ npm install gcc-output-parser
```
## Usage
```javascript
var parser = require('gcc-output-parser');
console.log(parser.parseString(gccOutput));
```
example output:
```javascript
[ { filename: 'HolidayButton.cpp',
line: 4,
column: 37,
type: 'fatal error',
text: 'ParticleButton/ParticleButton.h: No such file or directory',
codeWhitespace: ' ',
code: 'void onCheer(const char *topic, const char *data);',
adjustedColumn: 36 } ]
```
## Releasing
See the release process in the [RELEASE.md](RELEASE.md) file.