Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 546 Bytes

main-jac.md

File metadata and controls

23 lines (18 loc) · 546 Bytes

Building main.jac file

// import the graph and walker.
import {*} with "./chat_graph.jac";
import {*} with "./faq_graph.jac";
import {*} with "./walker.jac";

/// @notice this walker is reponsible for starting the program.
walker init {

    root {
        // creates an instant of the chat_graph
        spawn here ++> graph::chat_graph;

        // creates an instant of the faq_graph
        spawn here ++> graph::chat_graph;

        // creates an instance of the walker, talker
        spawn --> walker::talker;
    }
}