Lines Matching refs:end_tokens
99 def fail_eof(self, end_tokens=None, lineno=None): argument
102 if end_tokens is not None:
103 stack.append(end_tokens)
149 def parse_statements(self, end_tokens, drop_needle=False): argument
165 result = self.subparse(end_tokens)
170 self.fail_eof(end_tokens)
851 def subparse(self, end_tokens=None): argument
856 if end_tokens is not None:
857 self._end_token_stack.append(end_tokens)
880 if end_tokens is not None and \
881 self.stream.current.test_any(*end_tokens):
894 if end_tokens is not None: