zkas: Write the circuit namespace in the bincode.

This commit is contained in:
Luther Blissett
2022-10-16 16:02:33 +02:00
parent 7da7d2e662
commit c93034f164
5 changed files with 43 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ fn main() {
// the initial AST, not caring much about the semantics, just enforcing
// syntax and general structure.
let parser = Parser::new(filename, source.chars(), tokens);
let (constants, witnesses, statements) = parser.parse();
let (namespace, constants, witnesses, statements) = parser.parse();
// The analyzer goes through the initial AST provided by the parser and
// converts return and variable types to their correct forms, and also
@@ -86,6 +86,7 @@ fn main() {
let compiler = Compiler::new(
filename,
source.chars(),
namespace,
analyzer.constants,
analyzer.witnesses,
analyzer.statements,