mod.rs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* This file is part of DarkFi (https://dark.fi)
  2. *
  3. * Copyright (C) 2020-2024 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. /// Constants
  24. pub mod constants;
  25. /// Language opcodes
  26. pub mod opcode;
  27. pub use opcode::Opcode;
  28. /// Language types
  29. pub mod types;
  30. pub use types::{LitType, VarType};
  31. /// Language AST
  32. pub mod ast;
  33. /// Lexer module
  34. pub mod lexer;
  35. pub use lexer::Lexer;
  36. /// Parser module
  37. pub mod parser;
  38. pub use parser::Parser;
  39. /// Analyzer module
  40. pub mod analyzer;
  41. pub use analyzer::Analyzer;
  42. /// Compiler module
  43. pub mod compiler;
  44. pub use compiler::Compiler;
  45. /// Decoder module
  46. pub mod decoder;
  47. pub use decoder::ZkBinary;