winterface

Types

WingsType = enum
  default = "unknownObj", structw = "struct", enumw = "enum"
Supported wings types   Source Edit
ImportedWingsType = ref object
  name*: string
  init*: string
  Source Edit
IWings = ref object of RootObj
  comment*: string
  dependencies*: seq[string]
  filename*: string
  filepath*: Table[string, string]
  implement*: Table[string, string]
  imported*: bool
  imports*: Table[string, HashSet[string]]
  name*: string
  typesImported*: Table[string, Table[string, ImportedWingsType]]
  wingsType*: WingsType
A wings object interface.   Source Edit
WEnum = ref object of IWings
  values*: seq[string]
A wings enum object.   Source Edit
WStruct = ref object of IWings
  fields*: seq[string]
  functions*: Table[string, string]
A wings struct object.   Source Edit

Procs

proc initImportedWingsType(name: string = ""; init: string = ""): ImportedWingsType {...}{.
    raises: [], tags: [].}
  Source Edit
proc parseFile(file: File; filename: string; skipImport: bool): Table[string, IWings] {...}{.
    raises: [ValueError, GenericError, IOError, KeyError],
    tags: [ReadIOEffect, ReadDirEffect].}
Parse the given file (and its dependencies) into a table of filename to IWings.   Source Edit