https://github.com/alexistm/ast-for-arduino
Abstract Syntax Tree (AST) for Arduino output in JSON.
https://github.com/alexistm/ast-for-arduino
Last synced: 11 months ago
JSON representation
Abstract Syntax Tree (AST) for Arduino output in JSON.
- Host: GitHub
- URL: https://github.com/alexistm/ast-for-arduino
- Owner: AlexisTM
- License: gpl-3.0
- Created: 2016-11-15T20:13:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-18T08:47:15.000Z (over 9 years ago)
- Last Synced: 2025-06-24T10:49:26.567Z (about 1 year ago)
- Language: JavaScript
- Size: 224 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AST-For-Arduino
===================
Abstract Syntax Tree (AST) for Arduino output in JSON. The aim is to produce an AST from an Arduino code. It uses [Antlr4](http://www.antlr.org/) for javascript and is precompiled for CCP14.
Generate the javascript files yourself
----------------
Install ANTLR4
Compile
```bash
antlr4 -visitor -listener -atn -o javascript_release -Dlanguage=JavaScript CPP14.g4
```
JSON AST
--------------
If you have other propositions, don't hesitate
```json
```
Contribute
--------------
Fork, branch, PR
Credits
----------
Alexis Paques (@AlexisTM)