xo-expression: + Lambda (function definitions)

This commit is contained in:
Roland Conybeare 2024-06-13 17:05:38 -04:00
commit 20b23b50fc
4 changed files with 67 additions and 0 deletions

19
src/expression/Lambda.cpp Normal file
View file

@ -0,0 +1,19 @@
/* @file Lambda.cpp */
#include "Lambda.hpp"
#include "xo/indentlog/print/vector.hpp"
namespace xo {
namespace ast {
void
Lambda::display(std::ostream & os) const {
os << "<Lambda"
<< xtag("argv", argv_)
<< xtag("body", body_)
<< ">";
} /*display*/
} /*namespace ast*/
} /*namespace xo*/
/* end Lambda.cpp */