- ((find c "$")
- (problem 'ctm-unsupported :unsupported-construct start
- (format nil "Construct starting with ~S is outside the implemented subset." c)))
+ ((char= c #\$)
+ (unless (name-start-p (peek-character lexer))
+ (problem 'ctm-rejection :invalid-variable start "A variable requires an identifier."))
+ (take-character lexer) (scan-name lexer)
+ (make-token :kind :variable :value (subseq text (1+ start) (lexer-cursor lexer)) :position start))