CDDDDD
CDDDDD
1. What is a compiler?
A compiler is a program that translates high-level source code into low-level machine code
or intermediate code.
---
Experiment-Specific Questions
27. What happens if the input does not match the grammar?
The program displays an error or invalid string message.
30. What are the advantages of Flex over manual lexical analysis?
Flex is faster, error-free, and automates token generation.
---
---
---
---
13. What are common use cases for character frequency analysis?
It is used in text analysis, data compression, and cryptographic systems.
---
---
---
20. What is the purpose of counting spaces, words, and lines in a file?
To analyze the structure and content of a file, often for preprocessing or formatting purposes.
---
---
---
---
36. How does the program handle epsilon (#) in FIRST sets?
It moves to the next symbol in the production when epsilon is encountered.
---