New ARTIQ compiler, third iteration
Go to file
ychenfo f5ce1afe0b fix tests and switch to insta
Use a library called 'insta' to better organize those longer correct test outputs in toplevel tests. 'insta' creates `.snap` files as snapshots of the test output, and will automatically do the diff if the output is different. This makes maintaining test cases with larger outputs a lot easier.

Reviewed-on: M-Labs/nac3#42
Co-authored-by: ychenfo <yc@m-labs.hk>
Co-committed-by: ychenfo <yc@m-labs.hk>
2021-10-03 16:39:12 +08:00
nac3artiq nac3artiq: fix typo 2021-10-03 16:18:15 +08:00
nac3core fix tests and switch to insta 2021-10-03 16:39:12 +08:00
nac3standalone nac3standalone: demonstrate scalar conversion functions in mandelbrot 2021-10-02 19:21:59 +08:00
.gitignore nac3embedded: basic source extraction 2020-12-18 23:45:09 +08:00
Cargo.lock fix tests and switch to insta 2021-10-03 16:39:12 +08:00
Cargo.toml nac3embedded -> nac3artiq, README cleanup 2021-09-27 10:30:54 +08:00
README.md nac3embedded -> nac3artiq, README cleanup 2021-09-27 10:30:54 +08:00
shell.nix shell.nix: fix syntax 2021-09-24 12:53:48 +08:00

README.md

NAC3 compiler

This repository contains:

  • nac3core: Core compiler library, containing type-checking and code generation.
  • nac3artiq: Integration with ARTIQ and implementation of ARTIQ-specific extensions to the core language.
  • nac3standalone: Standalone compiler tool (core language only).

The core compiler knows nothing about symbol resolution, host variables etc. nac3artiq and nac3standalone provide (implement) the symbol resolver to the core compiler for resolving the type and value for unknown symbols. The core compiler only type checks classes and functions requested by nac3artiq/nac3standalone (the API should allow the caller to specify which methods should be compiled). After type checking, the compiler analyses the set of functions/classes that are used and performs code generation.

value could be integer values, boolean values, bytes (for memcpy), function ID (full name + concrete type)