Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.
HQ20Public archive

About

[DEPRECATED] A fast and friendly solidity comments parser 🐌

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

sol-comments-parser

npm Build Status Coverage Status

NOTE: AS WE STARTED CONTRIBUTING TO SOLIDITY PARSER AND WE NOW HAVE COMMENTS PARSER WE CONSIDERED THIS DEPRECATED. SEE https://github.com/obernardovieira/solidity-parser-antlr

This is a solidity comments parser, not to be used alone, but instead, help with any other package.

Installation

Use the package manager npm or yarn to install.

npm i sol-comments-parser --save
# or
yarn add sol-comments-parser

Usage

import { mapComments } from 'sol-comments-parser';

const input = fs.readFileSync(solidityFile, encoding); // By-default used utf-8
const result = mapComments(input);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Contributors

Many thanks to the ones that helped the tool so far. If you are reading this, and have any suggestion to improve, please, do so.

License

GPL-3.0

About

[DEPRECATED] A fast and friendly solidity comments parser 🐌

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages