xo-reader2 stack: + #q token + QuoteSsm [WIP - not functional]

This commit is contained in:
Roland Conybeare 2026-03-01 13:06:57 +11:00
commit 9920812d42
4 changed files with 21 additions and 2 deletions

View file

@ -87,6 +87,8 @@ namespace xo {
static Token symbol_token(const std::string & txt) {
return Token(tokentype::tk_symbol, txt);
}
/** token representing quote @c "'" **/
static Token quote() { return Token(tokentype::tk_quote); }
/** token representing left angle bracket @c "<" **/
static Token leftangle() { return Token(tokentype::tk_leftangle); }
/** token representing right angle bracket @c ">" **/

View file

@ -64,6 +64,9 @@ namespace xo {
/** a symbol **/
tk_symbol,
/** quote @c ' **/
tk_quote,
/** left-hand parenthesis @c '(' **/
tk_leftparen,