开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜