A source code token counter using antlr. Currently supports C, C++, C#, Haskell, Python, Rust.
- See which files from antlr/grammars-v4 the lexer needs
- Add them to
build.sbt'slexers - Extend
src/main/scala/toknt/Application.scalato support the language's file extension - Add the language to this README.md.
If grammars-v4 doesn't already have your language, you can still add it by creating an antlr lexer in
toknt's tree, but the process will naturally be a bit more involved.