[ab]*(ab)+
regular expression?a
, b
, ab
, ba
, aab
, bab
, baba
, ababaab
if else ifelse apple
text?if cout << "IF"; else cout << "ELSE"; [a-z]+ cout << "IDENTIFIER"; " "+ cout << "SPACES"
aaabbb
(S ⇒ … ⇒ aaabbb) using the grammar below!A → aB | c
rules!dword [a]
and dword [b]
memory locations!Extend the While language with a new type, called time. An example:
program exam time t; integer i; begin t := 09:52; i := hour(t) + minute(10:02); write(i); end
99:99
, but you are free to create smart regular expressions that allow literals only from the 00:00
- 23:59
range.)Tasks: