xo-tokenizer: move to scm ns + print() diagnostic

This commit is contained in:
Roland Conybeare 2024-08-05 14:44:39 -04:00
commit 2d0336058e
8 changed files with 49 additions and 19 deletions

View file

@ -6,7 +6,7 @@
#include "tokentype.hpp"
namespace xo {
namespace tok {
namespace scm {
char const *
tokentype_descr(tokentype tk_type)
{
@ -18,27 +18,33 @@ namespace xo {
CASE(tk_string);
CASE(tk_symbol);
CASE(tk_leftparen);
CASE(tk_rightparen);
CASE(tk_leftbracket);
CASE(tk_rightbracket);
CASE(tk_leftbrace);
CASE(tk_rightbrace);
CASE(tk_leftangle);
CASE(tk_rightangle);
CASE(tk_dot);
CASE(tk_comma);
CASE(tk_colon);
CASE(tk_doublecolon);
CASE(tk_semicolon);
CASE(tk_singleassign);
CASE(tk_assign);
CASE(tk_yields);
CASE(tk_type);
CASE(tk_def);
CASE(tk_lambda);
CASE(tk_if);
CASE(tk_let);
CASE(tk_in);
CASE(tk_end);
case tokentype::tk_invalid:
case tokentype::n_tokentype:
@ -49,7 +55,7 @@ namespace xo {
return "???";
} /*tokentype_descr*/
} /*namespace tok*/
} /*namespace scm*/
} /*namespace xo*/