Question: do this two sub-question with explanation 1. What do the bracket metasymbols [ ] indicate in EBNF? A. Choices separated by a bar | where

do this two sub-question with explanation
1. What do the bracket metasymbols [ ] indicate in EBNF? A. Choices separated by a bar | where a single element must be chosen B. The enclosed parts are optional C. The enclosed parts of the RHS are optional (can be left out) OR can be repeated (any number of times) The enclosed parts are mandatory D. 2. What is the purpose of a lexer? A. A lexer scans tokens to determine whether the tokens appear in an order that satisfies the grammar rules of a given language. A lexer produces a parse tree A lexer scans an input file and identifies or associates tokens with groups of characters that match a particular token category. A lexer is responsible for executing a left-most derivation B. C. D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
