ما هو أفضل مثال عن محلل المفردات في علم الحاسوب ؟
A compiler usually has two distinct components. A lexical analyzer, generated by a tool like codice_1, identifies the tokens of the programming language grammar, e.g. identifiers or keywords, which are themselves expressed in a simpler formal language, usually by means of regular expressions. At the most basic conceptual level, a parser, usually generated by a parser generator like codice_2, attempts to decide if the source program is valid, that is if it belongs to the programming language for which the compiler was built.
compiler