Open kuvshinovdr opened 3 months ago
Preliminary support in version 0.5: Lang_interface provides a common interface for objects implementing programming language suport; File_type_recognizer now becomes File_type_dispatcher that stores pointers to language interface objects and calls them on each recognized file according to its type. The only language interface object being available now is cpp, however.
Possible languages to be supported: Rust, Go, Python, C#, Java, JavaScript/TypeScript, Lua, FreePascal(?), Ruby, R, Julia, Matlab, Wolfram (Mathematica), Maxima, Swift, Kotlin, CMake, Fortran 90.
Better support in version 0.6: inherit from Lang_base
Preliminary C# support added.
There are three parts in programming language support in SrcStats: