In Kleene star a*, if a is the empty string, we don't need kleene star. Likewise, if a is the emptyset, we don't need kleene star either.
In compilerkit_kleene_star_new, change the return type to GObject *.
Update the constructor (compilerkit_kleene_star_new) so that if the node is either the emptystring or the emptyset, return just the emptystring or emptyset, respectively.
Write a test in tests/kleene-star-test.c that verifies the constructor works as specified.
In Kleene star
a*
, ifa
is the empty string, we don't need kleene star. Likewise, ifa
is the emptyset, we don't need kleene star either.compilerkit_kleene_star_new
, change the return type toGObject *
.compilerkit_kleene_star_new
) so that if thenode
is either the emptystring or the emptyset, return just the emptystring or emptyset, respectively.tests/kleene-star-test.c
that verifies the constructor works as specified.