nimtomd icon indicating copy to clipboard operation
nimtomd copied to clipboard

TODO

Open ThomasTJdev opened this issue 7 years ago • 0 comments

  • [ ] Cleanup
  • [ ] Split main file up into smaller procs
  • [ ] [2] - 1-line global with comment below is not recognized
  • [x] [1] - not* includes comments from Ordinal*
  • [x] [1] - *{ is not recognized
  • [x] If there's a new line after an inline ..code-block::, it will append a blank line
  • [x] Update README with info about required style. Maybe check with nimpretty and tell the user?
  • [x] Include info about import and include
  • [x] Use seq[string] to store top, body, import, include, proc, template, etc. Then it's possible to structure the output.

system.nim: [1]

proc `not`*(a: typedesc): typedesc {.magic: "TypeTrait", noSideEffect.}
  ## Constructs an `not` meta class

type
  Ordinal* {.magic: Ordinal.}[T] ## Generic ordinal type. Includes integer,
                                 ## bool, character, and enumeration types
                                 ## as well as their subtypes. Note `uint`
                                 ## and `uint64` are not ordinal types for
                                 ## implementation reasons
  `ptr`* {.magic: Pointer.}[T] ## built-in generic untraced pointer type
  `ref`* {.magic: Pointer.}[T] ## built-in generic traced pointer type

[2]

  SomeSignedInt* = int|int8|int16|int32|int64
    ## type class matching all signed integer types

  SomeUnsignedInt* = uint|uint8|uint16|uint32|uint64
    ## type class matching all unsigned integer types

ThomasTJdev avatar Oct 21 '18 04:10 ThomasTJdev