1
votes

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
Bison and flex (not Adobe Flex!) are tools for creating compilers - are you sure that's what you are trying to do? - weltraumpirat
It just added the icon for Adobe flex which I didn't mean! - Stefano Mtangoo
I have updated the question with a note! - Stefano Mtangoo
Thanks for clarifying that - doesn't answer my question, though... ;) Are you going to build a code browser, or are you going to build a code editor/compiler? - weltraumpirat
Codebrowser, a component of my already "in house" Editor. I want to be able to parse current file and populate symbols in codebrowser component (GUI tree) - Stefano Mtangoo

1 Answers

1
votes

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.