xo-reader: refactor: move def on_expr() to define_xs subtype

This commit is contained in:
Roland Conybeare 2024-08-07 16:28:39 -04:00
commit c4b58bb298
6 changed files with 145 additions and 50 deletions

15
src/reader/exprstate.cpp Normal file
View file

@ -0,0 +1,15 @@
/* @file exprstate.cpp */
#include "exprstate.hpp"
#include "define_xs.hpp"
namespace xo {
namespace scm {
std::unique_ptr<define_xs>
define_xs::def_0(rp<DefineExprAccess> def_expr) {
return std::make_unique<define_xs>(define_xs(def_expr));
}
} /*namespace scm*/
} /*namespace xo*/
/* end exprstate.cpp */