pyebnf/parser.py
def comment(self, text):
    """comment = "(*" . {printable - "*" | "*" . printable - ")"} . "*)" ;"""
    self._attempting(text)
    return concatenation([
      "(*",
      zero_or_more(
        alternation([
          exclusion(
            self.printable,
            "*"
          ),
          concatenation([
            "*",
            exclusion(
              self.printable,
              ")"
            ),
          ], ignore_whitespace=False),
        ]),
        ignore_whitespace=False
      ),
      "*)",
    ], ignore_whitespace=False)(text).compressed(TokenType.comment)
def comment(self, text):
    """comment = "(*" . {printable - "*" | "*" . printable - ")"} . "*)" ;"""
    self._attempting(text)
    return concatenation([
      "(*",
      zero_or_more(
        alternation([
          exclusion(
            self.printable,
            "*"
          ),
          concatenation([
            "*",
            exclusion(
              self.printable,
              ")"
            ),
          ], ignore_whitespace=False),
        ]),
        ignore_whitespace=False
      ),
      "*)",
    ], ignore_whitespace=False)(text).compressed(TokenType.comment)
comment = "(*" . {printable - "*" | "*" . printable - ")"} . "*)" ;