开发者

lex/yacc and parser/scanner

lex and yacc are supposed to be used together.

Which ones is the scanner and which one is the parser?

Which one creates a scanner and which one create开发者_运维技巧s a parser?


Lex (flex) is the lexical scanner. Yacc (bison) is the LALR parser generator.


You will find that Wikipedia has excellent answers on all of these software tools and will explain them clearly and concisely. It's often the best place to start when you want a clear answer to a standard question. Here is http://en.wikipedia.org/wiki/Lex_(software)

In computer science, lex is a program that generates lexical analyzers ("scanners" or "lexers").[1] Lex is commonly used with the yacc parser generator.

And there is a lot more

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜