Instead of Unicode support, ASCII letters in educational article are
completely enough. You can split identifiers in two parts. First letter and
everything else. So the RegExp would be:

/^[A-Z_$][A-Z0-9_$]*$/I

While this is for checking purposes you don't have to care abou the case of
letters. Also I think the RegExp fits into you article and it's enough
compact.
On Aug 31, 2011 6:08 PM, "Dmitry A. Soshnikov" <[email protected]>
wrote:
> The next part of implementing an interpreter is out.
>
> "Essentials of interpretation" Lesson 5. Simple user-defined functions.
>
>
https://github.com/DmitrySoshnikov/Essentials-of-interpretation/blob/master/src/lesson-5.js
>
> Dmitry.
>
> --
> To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to