OILS / pyext / fastlex.pyi View on Github | oilshell.org

19 lines, 16 significant
1from typing import Tuple
2
3def IsValidVarName(s: str) -> bool: ...
4def ShouldHijack(s: str) -> bool: ...
5def LooksLikeInteger(s: str) -> bool: ...
6def LooksLikeFloat(s: str) -> bool: ...
7
8def MatchOshToken(lex_mode_enum_id: int, line: str, start_pos: int) -> Tuple[int, int]: ...
9def MatchPS1Token(line: str, start_pos: int) -> Tuple[int, int]: ...
10def MatchEchoToken(line: str, start_pos: int) -> Tuple[int, int]: ...
11def MatchHistoryToken(line: str, start_pos: int) -> Tuple[int, int]: ...
12def MatchGlobToken(line: str, start_pos: int) -> Tuple[int, int]: ...
13def MatchBraceRangeToken(line: str, start_pos: int) -> Tuple[int, int]: ...
14def MatchJ8Token(line: str, start_pos: int) -> Tuple[int, int]: ...
15def MatchJ8LinesToken(line: str, start_pos: int) -> Tuple[int, int]: ...
16def MatchJ8StrToken(line: str, start_pos: int) -> Tuple[int, int]: ...
17def MatchJsonStrToken(line: str, start_pos: int) -> Tuple[int, int]: ...
18
19def MatchOption(s: str) -> int: ...