Repository navigation
Languages
Michael L. McKnight edited this page Dec 5, 2026
·
2 revisions
Canonical source: README: Supported languages and docs/architecture.md. Code Cleaner analyzes 11 languages.
| Language | Extensions | Parser (if installed) | Without it | Taint tracking |
|---|---|---|---|---|
| Python |
.py .pyw
|
stdlib ast (always) |
— |
ast engine (see Taint Tracking) |
| JavaScript |
.js .jsx .mjs .cjs
|
esprima ([js], ES2017 syntax) |
pattern-based | tree-sitter engine ([treesitter]) or line-based |
| Java | .java |
javalang ([java]) |
pattern-based | — |
| C# | .cs |
tree-sitter ([treesitter]) |
pattern-based | tree-sitter engine or line-based |
| C++ (and C) |
.cpp .cc .cxx .c .h .hpp .hh .hxx
|
tree-sitter | pattern-based | tree-sitter engine or line-based |
| Go | .go |
tree-sitter | pattern-based | tree-sitter engine or line-based |
| Ruby | .rb |
tree-sitter | pattern-based | tree-sitter engine or line-based |
| Rust | .rs |
tree-sitter | pattern-based | tree-sitter engine or line-based |
| SQL | .sql |
tree-sitter | statement splitter | n/a |
| HTML |
.html .htm
|
stdlib html.parser (always) |
— | — |
| SCRAWL (ROSETTA text) |
.rosetta, .scrawl
|
built-in ROSETTA v1.4 compiler (always) | — |
rosetta 1.4.0+ (cross-check and run; not taint tracking) |
"Pattern-based" means stripped text (comments and strings removed), brace/end matching and anchored regexes. It is what v1.1 used and still works with no dependencies, but it is less precise.
--language accepts: python, javascript, java, csharp, cpp, sql, go, ruby, rust, html, scrawl.
-
Python is always parsed with the standard-library
astmodule. - esprima only understands JavaScript up to ES2017; newer syntax falls back to patterns (one LOW note).
-
TypeScript (
.ts,.tsx) is not supported yet (issue #4). - There is no taint tracking for Java, HTML or SQL. Java taint tracking is on the roadmap (issue #6).
- SCRAWL has its own pages: SCRAWL and Rosetta Stone.
To add a language, see Adding a Language.
Created by ML / ML Innovations Research Lab. Korg (AI assistant, Grok Bot), contributor. · Repository · Apache License 2.0
Start here
Using Code Cleaner
Contributing