InterviewSolution
Saved Bookmarks
| 1. |
Which one is a lexer Generator?(a) ANTLR(b) DRASTAR(c) FLEX(d) All of the mentionedThe question was asked in a job interview.Asked question is from Lexical Analyser topic in portion Finite Automata and Regular Expression of Compiler |
|
Answer» CORRECT answer is (d) All of the mentioned To elaborate: ANTLR – Can GENERATE lexical analyzers and parsers. DFASTAR – Generates DFA matrix table-driven lexers in C++. Flex – variant of the “LEX” (C/C++). Ragel – A state machine and LEXER generator with output in C, C++, C#, Objective-C, D, Java, GO and Ruby. |
|