@tabnas/c
v0.5.6
Published
This plugin allows the [Tabnas](https://github.com/tabnas/parser) parser to parse C source into a concrete syntax tree, preserving macros and compiler extensions.
Maintainers
Readme
@tabnas/c (TypeScript)
The TypeScript implementation of @tabnas/c — a Tabnas
parser plugin (layered on @tabnas/jsonic)
that parses C source into a concrete syntax tree.
See the top-level README for the full description, CST shapes and architecture notes.
Build & test
npm install # resolves the @tabnas/parser, @tabnas/jsonic, @tabnas/expr siblings
npm run build # node embed-grammar.js && tsc --build src test
npm test # node --enable-source-maps --test "dist-test/*.test.js"The grammar lives in c-grammar.jsonic and is embedded
into src/c.ts at build time by
embed-grammar.js. Edit the grammar there, not in the
generated grammarText string literal between the BEGIN/END EMBEDDED
markers.
