INNER CODE UNIT · Python

Eof

Squirrel-Engine/Squirrel-Engine · googletest/googlemock/scripts/pump.py:133

def Eof():
  """Returns the special cursor to denote the end-of-file."""
  return Cursor(-1, -1)


class Token:
  """Represents a token in a Pump source file."""

  def __init__(self, start=None, end=None, value=None, token_type=None):
    if start is None:
      self.start = Eof()
    else:
      self.start = start
    if end is None:
      self.end = Eof()
    else:
      self.end = end
    self.value = value

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…