|
From: | Ricardo Rafael |
Subject: | Making statement delimiter optional ... |
Date: | Mon, 02 Jun 2003 18:48:39 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 |
Hi,I have managed to implement a script reentrant compiler with Flex and Bison. The language grammar is very similar to JavaScript (I could say it is almost 100% ECMA script compatible). I have used ';' as a statement delimiter.
Are there any hints on the following: How can I quickly make the statement delimiter optional? I have already made some experiments but the amount of a) work involved (in rewriting the grammar) or b) the shift/reduce and reduce/reduce conflicts introduced are not worth the effort!
I also have thought removing statement delimiter, but again, I introduced a lot of bison conflicts!
Is there anyone who has had the same experience? Any help greatly appreciated!
Sincerely, Ricardo Rafael.
[Prev in Thread] | Current Thread | [Next in Thread] |