src/nuance/node

  Source   Edit

Types

UntypedNode = object
  info*: LineInfo
  case kind*: UntypedNodeKind
  of intValNodeKinds:
      intVal*: BiggestInt

  of uintValNodeKinds:
      uintVal*: BiggestUInt

  of floatValNodeKinds:
      floatVal*: BiggestFloat

  of strValNodeKinds:
      strVal*: string

  else:
      children*: seq[UntypedNode]

  
  Source   Edit
UntypedNodeKind = NimNodeKind
  Source   Edit

Consts

floatValNodeKinds = {nnkFloatLit..nnkFloat128Lit}
  Source   Edit
intValNodeKinds = {nnkCharLit..nnkInt64Lit}
  Source   Edit
strValNodeKinds = {nnkStrLit..nnkTripleStrLit, nnkCommentStmt, nnkIdent, nnkSym}
  Source   Edit
uintValNodeKinds = {nnkUIntLit..nnkUInt64Lit}
  Source   Edit