Coding PHP Code browser: is Bison/Flex a choice?

醉酒当歌 提交于 2019-12-24 09:38:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!