nbcl 0.4.2

Configuration language designed to be easy and understandable.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ast::utils::{NativeNodeSchema, PropValidation};
use crate::registry::Registry;

/// Register the default nodes present in Nbcl
pub(crate) fn register_builtin_nodes(registry: &mut Registry) {
    // Universal 'Object' node
    registry.add_node(NativeNodeSchema {
        type_name: "Object".to_string(),
        enforce_id: false,
        validation: PropValidation::Loose,
        child_count: None,
    });
}