mu-sexp: make lists printable

And some typo fixes
This commit is contained in:
Dirk-Jan C. Binnema 2021-05-02 23:07:03 +03:00
parent d0d305b48f
commit b8f8ffa967
1 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
@ -207,7 +207,7 @@ struct Sexp {
}
/**
* Construct a properrty list sexp from a List
* Construct a property list sexp from a List
*
* @param name the property name; must start wtth ':'
* @param sexp a Sexp
@ -352,6 +352,14 @@ operator<<(std::ostream& os, const Sexp& sexp)
return os;
}
static inline std::ostream&
operator<<(std::ostream& os, const Sexp::List& sexp)
{
os << Sexp::make_list(Sexp::List(sexp));
return os;
}
} // Mu
#endif /* MU_SEXP_HH__ */