问题
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.
来源:https://stackoverflow.com/questions/8583953/coding-php-code-browser-is-bison-flex-a-choice