开发者

Using lex and yacc [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will like开发者_开发知识库ly solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Where do i download lex and yacc for linux?

And how do i intall them?


Both lex and yacc should be part of one of your development toolchains.

How to get them depends entirely on your distro.

For example, in Ubuntu, you would kick up Synaptic and search for, hmmm, let me think, ..., yes, that's it, "lex" or "yacc" - I knew it would come to me :-)


Sorry, got a little carried away there. Actually, you're more likely to have luck looking for flex and bison. The bison program is the GNU version which is upward compatible with yacc, and flex, while not GNU, is still free (both speech-free and beer-free).


I don't have much recent experience with Linux but back when I was doing some compiler development on Irix we used Flex and Bison. Those are, as far as I remember, more modern versions of Lex and Yacc, and may be easier to find for your distro.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜