mod.rs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* This file is part of DarkFi (https://dark.fi)
  2. *
  3. * Copyright (C) 2020-2022 Dyne.org foundation
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. //! `src/zkas` is the library holding the zkas toolchain, consisting of a
  19. //! lexer, parser, static/semantic analyzers, a binary compiler, and a
  20. //! binary decoder.
  21. /// Error emitter
  22. mod error;
  23. /// Language opcodes
  24. pub mod opcode;
  25. pub use opcode::Opcode;
  26. /// Language types
  27. pub mod types;
  28. pub use types::{LitType, VarType};
  29. /// Language AST
  30. pub mod ast;
  31. /// Lexer module
  32. pub mod lexer;
  33. pub use lexer::Lexer;
  34. /// Parser module
  35. pub mod parser;
  36. pub use parser::Parser;
  37. /// Analyzer module
  38. pub mod analyzer;
  39. pub use analyzer::Analyzer;
  40. /// Compiler module
  41. pub mod compiler;
  42. pub use compiler::Compiler;
  43. /// Decoder module
  44. pub mod decoder;
  45. pub use decoder::ZkBinary;