import bnf

# Language ::= "[hH]ello, [wW]orld!"
class Language(bnf.Identifier):
    __default_regex__ = r"[hH]ello, [wW]orld!"

    def onMatch(self, context):
        print "Match", self.id

4786bf9be19a70e6ad4595efe5a5da10071a00a6
import bnf

# Language ::= "[hH]ello, [wW]orld!"
class Language(bnf.Identifier):
    __default_regex__ = r"[hH]ello, [wW]orld!"

    def onMatch(self, context):
        print "Match", self.id
