1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! # NBCL - Node Based Configuration Language
//!
//! `nbcl` is a lightweight, declarative configuration DSL mainly designed for
//! defining UI components and cloud infrastructure. The syntax is designed to be simple,
//! and thus follows an HCL-inspired Blocky syntax but with the added benifits of
//! modularity, scripting capabilities, and simplicity.
//!
//! ## Example
//!
//! ```rust
//! use nbcl::NbclEngine;
//!
//! fn main() {
//! let code = r#"
//! print("Hello, World")
//!
//! Object "language" {
//! name = "nbcl"
//! website = "nbcl-lang.github.io"
//! playground = "nbcl-lang.github.io/playground"
//! documnetation = "nbcl-lang.github.io/docs"
//! }
//! "#;
//!
//! let engine = NbclEngine::new();
//! match engine.evaluate(code) {
//! Ok(cfg) => println!("Resolved config: {:#?}", cfg),
//! Err(e) => println!("Error: {}", e)
//! }
//! }
//! ```
pub use *;
pub use *;
/// Print a message that automatically goes to right buffer.
///
/// - If wasm: Goes to wasm buffer
/// - If not wasm: Goes to system buffer