Bonus Marks
- › Write a regular expression matching strings of all
a
orb
such asaababa
orbbaa
. - › Write a regular expression matching strings of consecutive
a
andb
such asababab
oraba
. - › Write a regular expression matching
pit
,pot
andrespite
but notpeat
,spit
, orpart
. - › Change the grammar to add a new operator such as
%
. - › Change the grammar to recognise operators written in textual format
add
,sub
,mul
,div
. - › Change the grammar to recognize decimal numbers such as
0.01
,5.21
, or10.2
. - › Change the grammar to make the operators written conventionally, between two expressions.
- › Use the grammar from the previous chapter to parse
Doge
. You must add start and end of input.
当前内容版权归 orangeduck 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 orangeduck .