Need advice on using symbol table

33 views
Skip to first unread message

Harlek

unread,
Sep 6, 2024, 11:40:49 PM9/6/24
to Verible Developers
Hello Verible Developers,
I am trying to add a rule for reporting undeclared varible as mentioned in issue #1929.
According to the response in the issue, I want to implement this lint rule using the symbol table. But I encountered some problems. I cannot access the symble table in the /analysis/checkers folder where I am writing the lint rule.
I have found that symbol tables are currently only used in functions such as “hover” and “goto definition”. None of the lint rules used the symbol table. What should I do if I want to use the symble table in the lint rule in the /analysis/checkers/ folder?
I want to reference the header file of the symbol table in the lint rule, but I am concerned that referencing the symbol table would go against the original design intention.
I hope that someone can give me some advice.
Thank you.
Harlek

David Fang

unread,
Sep 8, 2024, 5:25:42 PM9/8/24
to Harlek, Verible Developers

--
You received this message because you are subscribed to the Google Groups "Verible Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to verible-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/verible-dev/f9311ea0-c818-440d-95f6-a1561e0813e5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages