A Tree-sitter grammar for Tcl

#17 Variables with underscores are interpreted as concatenation

~cdrozak filed ticket on tree-sitter-tcl todo

10 months ago

#16 Support [incr Tcl]

~cdrozak filed ticket on tree-sitter-tcl todo

1 year, 11 months ago


Tree-sitter grammar for Tcl language.


The recommended way to generate grammar is to use make, make all or make generate. They all do the same. There is also possibility to use NPM target, but it is slower — npm run generate.


  • Handling of word concatenation was inspired by tree-sitter-bash. I didn't think of using external scanner to do that.

  • The code allowing to develop two grammars in one repository was basically copied from tree-sitter-typescript.