(self, token_class, token_repr)
Check that the next token is the specified one or fail with a
        ParserError
Check that the next token is the specified one or fail with a
        ParserError
Check that the next token is the specified one or fail with a ParserError
def expect(self, token_class, token_repr):
        """
        Check that the next token is the specified one or fail with a
        ParserError
        """
        if type(self.token) != token_class:
            raise PysmtSyntaxError("Expected '%s'" % token_repr)
        self.advance()
def expect ( self , token_class , token_repr ) : if type ( self . token ) != token_class : raise PysmtSyntaxError ( "Expected '%s'" % token_repr ) self . advance ( )