On 10 мар, 16:08, "Dave Dolan" <
dave.do...@gmail.com> wrote:
> Without doing all of the math myself for this particular case, I can speak
> in the general sense. When I have trouble with terminals being too greedy,
> I implement the same concepts in non-terminals, where I can be more
> specific. Perhaps it would be better to recoginze them as productions
> instead of terminals since there isn't a way to 'weight' which terminals one
> should be given precedence.
Thank you for answer!
But regexp construction can consist of every possible characters
(exclude '/' and linefeed).
Therefore it is absorbing all other terminals and whitespace, escape
simbols, inverted commas and other simbol string chars.
On the other hand simbol string may absorb regexp terminator '/'.
It create a large porblem, for example, the parser may tangle a
terminal simbols.
I don't known which terminal(!) simbols must be defined in this case.
Please help me to describe gramatic for this particular case.
Thanks,
Alexis
P.S. ooo... sorry, of my english....