Example #1
0
def _MatchEchoToken_Fast(line, start_pos):
  # type: (str, int) -> Tuple[Id_t, int]
  """Returns (id, end_pos)."""
  tok_type, end_pos = fastlex.MatchEchoToken(line, start_pos)
  return IdInstance(tok_type), end_pos
Example #2
0
def _MatchEchoToken_Fast(line, start_pos):
    """Returns (id, end_pos)."""
    tok_type, end_pos = fastlex.MatchEchoToken(line, start_pos)
    return IdInstance(tok_type), end_pos