开发者

Tokenization, Lexical Analysis, BNF, Context Free Grammar [closed]

开发者 https://www.devze.com 2023-03-17 04:30 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it'开发者_如何学Cs on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it'开发者_如何学Cs on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I just want to ask if Tokenization is the same as Lexical analysis and if Backus Naur Form is the same as Context Free Grammar? I need to define and explain all four and give examples but It seems some websites treat some as one.

Thank you.


Tokenization and lexical analysis are synonyms. Backus-Naur form is a language or notation for describing context-free grammars; thus, it is not correct to say that Backus-Naur form is a context-free grammar.

Edit: Corrected my statement after @Gunther's comment below.

0

精彩评论

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

关注公众号