开发者

Regular Expressions In Compilers

开发者_如何转开发

Are regular expressions used directly in compilers to identify tokens?


Yes. Many compilers use a generated scanner whose token rules are defined as REs to a DFA. Flex(1) is a prominent example.

I don't understand the second part of your question.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜