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

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