/word_counter

Terminal code analysis tool inspired by "The Legacy Code Programmer's Toolbox" book.

Primary LanguageRust

WORD COUNTER

Quick draft of a simple terminal tool for counting words within a line range on a file, ignoring comments, control flow, symbols, basic types, numbers, etc.

Meant to help analysing code functions, as described in The Legacy Code Programmer's Toolbox

Usage

word_counter <file_name> <start_line> <end_line>

Will return a list of the words in that line range, order by frecuency, also displaying the number of times the word is used and the percentage it represents.

NOTE: Written with C/C++ code in mind

Missing features

  • Inline comments
  • Block comments