[plt-scheme] help about javascript.plt

From: Daniel Yoo (dyoo at cs.wpi.edu)
Date: Wed Apr 25 12:19:32 EDT 2007

>  I need help about javascript.plt.
>  How i can use national char in declaration of ID?
>  when i change declaration of
>  [letter (union   (range #\a #\z) (range #\A #\Z))]
>  to
>  [letter (union   (range #\a #\z) (range #\A #\Z) (range #\а #\я)
>  (range #\А #\Я))]
>  i can't get end of lexeme, becouse not read space as delimiter

Hi wwall,

Is it possible for you to define the edges of the range here using unicode 
character literals?  (I can't actually tell either what characters you're 
using here from my email client either.)


Unicode character literals are described here:

http://download.plt-scheme.org/doc/360/html/mzscheme/mzscheme-Z-H-3.html#node_sec_3.4


I see that you're looking at the syntax/regexps.ss file in javascript.plt:

http://planet.plt-scheme.org/package-source/dherman/javascript.plt/5/2/syntax/regexps.ss


It looks like putting unicode literal characters should work fine:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> (require (planet "syntax/abstract-regexps.ss"
                    ("dherman" "javascript.plt" 5 2)))
> (define-abstract-regexps
     [letter (union (range #\a #\z)
                    (range #\A #\Z)
                    (range #\uAC00 #\uAC0C))])
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Posted on the users mailing list.