☰

# nimlexbase

Theme:

- Index

Search:
Group by:
Source Edit

# Imports

llstream

# Types

    TBaseLexer = object of RootObj
      bufpos*: int
      buf*: cstring
      stream*: PLLStream
      lineNumber*: int
      sentinel*: int
      lineStart*: int
      offsetBase*: int

  Source Edit

# Consts

    Apo = '\''

  Source Edit

    BACKSPACE = '\b'

  Source Edit

    BEL = '\a'

  Source Edit

    CR = '\r'

  Source Edit

    EndOfFile = '\x00'

  Source Edit

    ESC = '\e'

  Source Edit

    FF = '\f'

  Source Edit

    LF = '\n'

  Source Edit

    Lrz = ' '

  Source Edit

    NewLines = {'\r', '\n'}

  Source Edit

    Tabulator = '\t'

  Source Edit

    VT = '\v'

  Source Edit

# Procs

    proc closeBaseLexer(L: var TBaseLexer) {....raises: [IOError], tags: [],
        forbids: [].}

  Source Edit

    proc getColNumber(L: TBaseLexer; pos: int): int {....raises: [], tags: [],
        forbids: [].}

  Source Edit

    proc getCurrentLine(L: TBaseLexer; marker: bool = true): string {....raises: [],
        tags: [], forbids: [].}

  Source Edit

    proc handleCR(L: var TBaseLexer; pos: int): int {....raises: [IOError, Exception],
        tags: [ReadIOEffect, RootEffect], forbids: [].}

  Source Edit

    proc handleLF(L: var TBaseLexer; pos: int): int {....raises: [IOError, Exception],
        tags: [ReadIOEffect, RootEffect], forbids: [].}

  Source Edit

    proc openBaseLexer(L: var TBaseLexer; inputstream: PLLStream; bufLen: int = 8192) {.
        ...raises: [IOError, Exception], tags: [ReadIOEffect, RootEffect], forbids: [].}

  Source Edit