SCM_ASSERT_TYPE (ly_c_symbol_p (symbol), symbol, SCM_ARG2, __FUNCTION__, "symbol");
SCM_ASSERT_TYPE (parser, parser_smob, SCM_ARG2, __FUNCTION__, "parser");
-
parser->lexer_->set_identifier (scm_symbol_to_string (symbol), val);
return SCM_UNSPECIFIED;
}
(cond (;; $variable
(and (symbol? form)
(string=? (substring (symbol->string form) 0 1) "$")
- (not (string=? (substring (symbol->string form) 1 2) "$")))
+ (not (and (<= 2 (string-length (symbol->string form)))
+ (string=? (substring (symbol->string form) 1 2) "$"))))
(create-binding! (string->symbol (substring (symbol->string form) 1))))
(;; atom
(not (pair? form)) form)