Theory of Computation20805 marksNumerical: DFA for C commentsDeterministic Finite Automata
Design a DFA that accepts single line and multi-line comments of the C-Language.
Design a DFA that accepts single line and multi-line comments of the C-Language. [5]
- Single-line comment: begins with //, terminates at newline \n. - Multi-line comment: begins with /, terminates at first /. - Alphabet symbols needed: /, , \n, and other (any character that is not /, , or \n). No numeric matrices are involved; this is a construction problem. All required specifi...