pyebnf/_hand_written_parser.py
def terminal(self, text):
    """terminal = '"' . (printable - '"') + . '"'
                | "'" . (printable - "'") + . "'" ;
    """
    self._attempting(text)
    return alternation([
      concatenation([
        '"',
        one_or_more(
          exclusion(self.printable, '"')
        ),
        '"'
      ], ignore_whitespace=False),
      concatenation([
        "'",
        one_or_more(
          exclusion(self.printable,"'")
        ),
        "'"
      ], ignore_whitespace=False)
    ])(text).compressed(TokenType.terminal)
def terminal(self, text):
    """terminal = '"' . (printable - '"') + . '"'
                | "'" . (printable - "'") + . "'" ;
    """
    self._attempting(text)
    return alternation([
      concatenation([
        '"',
        one_or_more(
          exclusion(self.printable, '"')
        ),
        '"'
      ], ignore_whitespace=False),
      concatenation([
        "'",
        one_or_more(
          exclusion(self.printable,"'")
        ),
        "'"
      ], ignore_whitespace=False)
    ])(text).compressed(TokenType.terminal)
def terminal ( self , text ) : self . _attempting ( text ) return alternation ( [ concatenation ( [ '"' , one_or_more ( exclusion ( self . printable , '"' ) ) , '"' ] , ignore_whitespace = False ) , concatenation ( [ "'" , one_or_more ( exclusion ( self . printable , "'" ) ) , "'" ] , ignore_whitespace = False ) ] ) ( text ) . compressed ( TokenType . terminal )
terminal = '"' . (printable - '"') + . '"'
                | "'" . (printable - "'") + . "'" ;
terminal = . ( printable - ) + . | . ( printable - ) + . ;