소스 검색

Replace '...' with 'NotImplemented'

gm/2021-09-23T00Z/github.com--lark-parser-lark/1.0b
Erez Sh 3 년 전
부모
커밋
0fddb7fef6
2개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. +6
    -6
      lark/indenter.py
  2. +1
    -1
      lark/lexer.py

+ 6
- 6
lark/indenter.py 파일 보기

@@ -74,31 +74,31 @@ class Indenter(PostLex, ABC):
@property
@abstractmethod
def NL_type(self) -> str:
...
return NotImplemented

@property
@abstractmethod
def OPEN_PAREN_types(self) -> List[str]:
...
return NotImplemented

@property
@abstractmethod
def CLOSE_PAREN_types(self) -> List[str]:
...
return NotImplemented

@property
@abstractmethod
def INDENT_type(self) -> str:
...
return NotImplemented

@property
@abstractmethod
def DEDENT_type(self) -> str:
...
return NotImplemented

@property
@abstractmethod
def tab_len(self) -> int:
...
return NotImplemented

###}

+ 1
- 1
lark/lexer.py 파일 보기

@@ -359,7 +359,7 @@ class Lexer(ABC):
"""
@abstractmethod
def lex(self, lexer_state: LexerState, parser_state: Any) -> Iterator[Token]:
...
return NotImplemented

def make_lexer_state(self, text):
line_ctr = LineCounter(b'\n' if isinstance(text, bytes) else '\n')


불러오는 중...
취소
저장