Library that allows you parse files to interpret functions/statements/classes/other syntax in a variety of languages
- Node 18.15.0 was used for development
- Need to install yarn
- Run
yarn install
to install dependencies - Run
yarn test
to run tests
There is a few types of information that are relevant that I would like to see.
One is just general metadata information based on where you are scoped. (For now I am scoping to individual files).
So for example:
- Information about entire project files
- Information about directories
- Information about individual files
- Information about function/class/other block related elements
The type of information that would be provided for each scope is:
- Name of item/element/symbol
- Type of item (function, class, etc if block related)
- Metadata relevant to scope, like how many lines of code, how many comments, how many statements, functions, etc
The second type of information is the actual parsed information inside of that scope. So the functions which might contain classes/properties/methods, etc...
- Mainly focusing on Typescript/JavaScript for now, but ideally would like to expand to other languages
- Create a framework for a generic parser that can be used to parse files for different languages
- Focus on providing raw content of different scopes, like file content, lines, function blocks, etc...
- Identify different symbols and the scopes that are contained within the file, like functions, classes, etc...
- Provide metadata about the scopes, like how many lines of code, how many functions/classes/other symbols, etc...
- Provide a way to take the parsed information and use it to identify advanced information