Tokenization, Lexical Analysis, BNF, Context Free Grammar [closed]
Want to improve this question? Update the question so it'开发者_如何学Cs on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI 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.
精彩评论