【判断题】Give names to regular expressions and then define regular expressions using these names as if they were symbols. A sequence of definitions of the form d 1 = r 1 d 2 = r 2 .......... d n = r n where d ...
【简答题】Activity: Fill in each of the following blanks with a word or expression in its proper form. at regular intervals interval jack up bundle up peer 1. In the budget the chancellor is b...
【单选题】You define the following regular expression of currency values: regex tx = new regex("^-?/d+(/./d{2})?$") You are required to write code that will be used to find whether a string in the variable name...
【简答题】Based on Σ={0,1}, the regular expression 0(0|1)*1 accepting all the series that the beginning symbol is 0 and the end symbol is 1. Translate the NDFA of (2) to an equivalent DFA using sub-construction...
【判断题】Step for developing a lexical analyzer: 1. For each of these regular expression we construct an NFA with a single start and single accepting state. 2. Piece these together into a single NFA a. add a s...