compiler/nimlexbase

  Source   Edit

Types

TBaseLexer = object of RootObj
  bufpos*: int
  buf*: cstring
  bufStorage: string
  bufLen: int
  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: [], tags: [].}
  Source   Edit
proc getColNumber(L: TBaseLexer; pos: int): int {....raises: [], tags: [].}
  Source   Edit
proc getCurrentLine(L: TBaseLexer; marker: bool = true): string {....raises: [],
    tags: [].}
  Source   Edit
proc handleCR(L: var TBaseLexer; pos: int): int {....raises: [IOError, Exception],
    tags: [ReadIOEffect, RootEffect].}
  Source   Edit
proc handleLF(L: var TBaseLexer; pos: int): int {....raises: [IOError, Exception],
    tags: [ReadIOEffect, RootEffect].}
  Source   Edit
proc openBaseLexer(L: var TBaseLexer; inputstream: PLLStream; bufLen: int = 8192) {.
    ...raises: [IOError, Exception], tags: [ReadIOEffect, RootEffect].}
  Source   Edit