cbuilderbase

Search:
Group by:
Source   Edit  

Types

Builder = object
  buf*: string
  indents*: int
Source   Edit  
IfBuilder = object
  state*: IfBuilderState
Source   Edit  
IfBuilderState = enum
  WaitingIf, WaitingElseIf, InBlock
Source   Edit  
Snippet = string
Source   Edit  

Consts

CChar = "char"
Source   Edit  
CConstPointer = "NIM_CONST void*"
Source   Edit  
CInt = "int"
Source   Edit  
CNil = "NULL"
Source   Edit  
CPointer = "void*"
Source   Edit  
CVoid = "void"
Source   Edit  
NimBool = "NIM_BOOL"
Source   Edit  
NimChar = "NIM_CHAR"
Source   Edit  
NimCstring = "NCSTRING"
Source   Edit  
NimFalse = "NIM_FALSE"
Source   Edit  
NimFloat = "NF"
Source   Edit  
NimFloat32 = "NF32"
Source   Edit  
NimFloat64 = "NF64"
Source   Edit  
NimFloat128 = "NF128"
Source   Edit  
NimInf = "INF"
Source   Edit  
NimInt = "NI"
Source   Edit  
NimInt8 = "NI8"
Source   Edit  
NimInt16 = "NI16"
Source   Edit  
NimInt32 = "NI32"
Source   Edit  
NimInt64 = "NI64"
Source   Edit  
NimNan = "NAN"
Source   Edit  
NimNil = "NIM_NIL"
Source   Edit  
NimStrlitFlag = "NIM_STRLIT_FLAG"
Source   Edit  
NimTrue = "NIM_TRUE"
Source   Edit  
NimUint = "NU"
Source   Edit  
NimUint8 = "NU8"
Source   Edit  
NimUint16 = "NU16"
Source   Edit  
NimUint32 = "NU32"
Source   Edit  
NimUint64 = "NU64"
Source   Edit  

Procs

proc add(builder: var Builder; s: char) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc add(builder: var Builder; s: string) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc addDedent(builder: var Builder; s: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addFloatValue(builder: var Builder; val: float) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addInt64Literal(result: var Builder; i: BiggestInt) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addIntLiteral(result: var Builder; i: BiggestInt) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addIntLiteral(result: var Builder; i: Int128) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addIntValue(builder: var Builder; val: int) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addIntValue(builder: var Builder; val: int64) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addIntValue(builder: var Builder; val: Int128) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addIntValue(builder: var Builder; val: uint64) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addLineComment(builder: var Builder; comment: string) {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
proc addLineEnd(builder: var Builder; s: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addLineEndDedent(builder: var Builder; s: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addLineEndIndent(builder: var Builder; s: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addNewline(builder: var Builder) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc addUint64Literal(result: var Builder; i: uint64) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc cInt64Literal(i: BiggestInt): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc cIntLiteral(i: BiggestInt): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc cIntLiteral(i: Int128): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc cIntType(bits: BiggestInt): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc cUint64Literal(i: uint64): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc cUintType(bits: BiggestInt): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc extract(builder: Builder): Snippet {....raises: [], tags: [], forbids: [].}
Source   Edit  

Templates

template cFloatValue(val: float): Snippet
Source   Edit  
template cIntValue(val: int): Snippet
Source   Edit  
template cIntValue(val: int64): Snippet
Source   Edit  
template cIntValue(val: Int128): Snippet
Source   Edit  
template cIntValue(val: uint64): Snippet
Source   Edit  
template cUintValue(val: uint): Snippet
Source   Edit  
template newBuilder(s: string): Builder
Source   Edit