types

    Dark Mode
Search:
Group by:

Types

JoyListType = List[JoyType]
  Source Edit
JoyMapType = Map[string, JoyListType]
  Source Edit
JoyState = tuple[stack: JoyListType, expression: JoyListType]
  Source Edit
JoyTypeType = enum
  joyAtom, joyFalse, joyInt, joyList, joyParseError, joyTrue
  Source Edit
JoyType = ref object
  case kind*: JoyTypeType
  of joyAtom:
    atomVal*: string
  of joyFalse, joyTrue:
    nil
  of joyInt:
    intVal*: BigInt
  of joyList:
    listVal*: JoyListType
  of joyParseError:
    errorMessage*: string
  
  Source Edit

Lets

j_true = JoyType(kind: joyTrue)
  Source Edit
j_false = JoyType(kind: joyFalse)
  Source Edit
j_loop = JoyType(kind: joyAtom, atomVal: "loop")
  Source Edit