mk-session should attempt to load rules from qualified symbols
Closed this issue · 1 comments
rbrush commented
Right now (mk-session 'my.rule.ns) loads all rules from the namespace as expected. In some use cases, code may generate rules as a sequence in a particular symbol that users may want to load with (mk-session 'my.ns/my-rules), where my.ns/my-rules contains a production or sequence of productions. Today calling mk-session this way yields an exception since it assumes any symbol is a namespace.
To address this, we can check if mk-session is given a qualified symbol, and attempt to load rules from the content of that symbol.
rbrush commented
Merged!