src/kdl/parser

Source   Edit  

Types

Parser = object
  case isStream*: bool
  of true:
    stream*: Stream
  else:
    source*: string
  multilineStringsNewLines*: seq[tuple[idx, length: int]]
  stack*: seq[Token]
  current*: int
Source   Edit  

Procs

proc parseKdl(lexer: sink Lexer): KdlDoc {.
    ...raises: [IOError, OSError, Exception], tags: [WriteIOEffect, RootEffect],
    forbids: [].}
Source   Edit  
proc parseKdl(source: string; start = 0): KdlDoc {.
    ...raises: [IOError, OSError, KdlLexerError, Exception],
    tags: [ReadIOEffect, WriteIOEffect, RootEffect], forbids: [].}
Source   Edit  
proc parseKdl(stream: sink Stream): KdlDoc {.
    ...raises: [IOError, OSError, KdlLexerError, Exception],
    tags: [ReadIOEffect, WriteIOEffect, RootEffect], forbids: [].}
Source   Edit  
proc parseKdlFile(path: string): KdlDoc {.
    ...raises: [IOError, OSError, KdlLexerError, Exception],
    tags: [ReadIOEffect, WriteIOEffect, RootEffect], forbids: [].}
Source   Edit  
proc parseKdlFileStream(path: string): KdlDoc {.
    ...raises: [IOError, OSError, KdlLexerError, Exception],
    tags: [ReadIOEffect, WriteIOEffect, RootEffect], forbids: [].}
Source   Edit  
proc parseKdlStream(source: sink string): KdlDoc {.
    ...raises: [IOError, OSError, KdlLexerError, Exception],
    tags: [ReadIOEffect, WriteIOEffect, RootEffect], forbids: [].}
Source   Edit