[Github-comments] [geany/geany] Decide what to do about the TCL ctags parser (Issue #3103)

Jiří Techet notifications at xxxxx
Tue Jan 18 09:49:13 UTC 2022


The upstream TCL parser is split into 3 parts:
1. The parser of the TCL language: https://github.com/universal-ctags/ctags/blob/master/parsers/tcl.c
2. The parser of TCLOO (the "current" object-oriented extension): https://github.com/universal-ctags/ctags/blob/master/parsers/tcloo.c
3. The parser of ITCL ("legacy" object-oriented extension): https://github.com/universal-ctags/ctags/blob/master/parsers/itcl.c

One can use the combo of 1+2 or 1+3 but it's not possible to use 1+2+3. uctags distinguishes which parser to use based on the file extension ("tcl" vs "itcl"). Our current parser generates tags both for ITCL and TCLOO. The question now is what to do:
1. Keep our parser (it doesn't seem to be so advanced like the upstream parser which is token-based and it means maintaining it by ourselves).
2. Use one of the combos TCLOO+TCL or ITCL+TCL and sacrifice the other OO extension (not sure which one would be better to use, I'm not a TCL user).
3. Introduce a new filetype so there will be "tcl" (which would be TCLOO+TCL) and "itcl" (which would be ITCL+TCL).

To reduce the amount of code we have to maintain, I personally would prefer (2) or (3). What do you think?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3103
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3103 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220118/ad3911b7/attachment.htm>


More information about the Github-comments mailing list