Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T14:39:06.000Z (over 1 year ago)
- Last Synced: 2024-10-12T23:40:24.478Z (3 months ago)
- Topics: gcc, javascript, node-js, parser
- Language: JavaScript
- Homepage:
- Size: 727 KB
- Stars: 20
- Watchers: 45
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcc output parser library
[![Build Status](https://circleci.com/gh/particle-iot/gcc-output-parser.svg?style=shield)](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.