nir.nim 540 B

1234567891011121314151617181920212223
  1. #
  2. #
  3. # The Nim Compiler
  4. # (c) Copyright 2023 Andreas Rumpf
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. ## Nim Intermediate Representation, designed to capture all of Nim's semantics without losing too much
  10. ## precious information. Can easily be translated into C. And to JavaScript, hopefully.
  11. import nirtypes, nirinsts, ast2ir
  12. when false:
  13. type
  14. Module* = object
  15. types: TypeGraph
  16. data: seq[Tree]
  17. init: seq[Tree]
  18. procs: seq[Tree]