Lines Matching refs:end_tokens
91 def fail_eof(self, end_tokens=None, lineno=None): argument
94 if end_tokens is not None:
95 stack.append(end_tokens)
141 def parse_statements(self, end_tokens, drop_needle=False): argument
157 result = self.subparse(end_tokens)
162 self.fail_eof(end_tokens)
843 def subparse(self, end_tokens=None): argument
848 if end_tokens is not None:
849 self._end_token_stack.append(end_tokens)
872 if end_tokens is not None and \
873 self.stream.current.test_any(*end_tokens):
886 if end_tokens is not None: