I have rewritten the grammar. There are some problems though.

- I don't know how to express thinks like: an identifier is
<[a..zA..Z_$]>*, but not a <keyword>. Something like: rule identifier
{<!keyword><[a..zA..Z_$]>*} seems not to allow identifiers that have
keywords as prefix.
- I couldn't make comments work.
- I don't know how to handle unicode,
- How to accomplish semicolon insertion?
- With some programs it doesn't stop. I don't know if it gets in an
infinite loop or it is too slow, I didn't have time to look at it.

Comments are welcome.

--
Mehmet

Attachment: jsparser.tar.gz
Description: GNU Zip compressed data

Reply via email to