Nim0 language in Nim
The parser.
From the syntactic items identified by the scanner (OSS.nim) reading the Nim0 source file, the parser checks that Nim0 syntax is repected and deduces the role of the items. It can then call the RISC code generator (OSG.nim) to emit the corresponding RISC instructions.
Procs
proc ospCompile(target: string; verbose: bool): int {. ...raises: [IOError, EOFError, Exception, ValueError], tags: [WriteIOEffect, ReadIOEffect, RootEffect].}