I am planning to make Source code browser. Previously I wanted to use ctags but unfortunately, I found ctags is very limited as it cannot tell which class the method belongs to. I decided to check with another alternative. Reading the internet I have found many talking of using Bison/Flex. I have never used bison/flex so before I jumped in I wanted to know if it Bison/Flex is a right choice for my task. Thanks
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Knowing that flex and bison(or lex and yacc) are parsing solution.you can use this solution for both validating your code source and identifying by the way all symbols you may need in your in codebrowser component.
am currently developing a ansi-c Grammar.validating the code and storing all typdefs structures.
This document may help you, good luck.