A bug in scan.l
От | Gokulakannan Somasundaram |
---|---|
Тема | A bug in scan.l |
Дата | |
Msg-id | 9362e74e0909011905l3a405ad0la2b1449be5852a0f@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: A bug in scan.l
|
Список | pgsql-hackers |
There is a rule like this in scan.l<br /><br />uescapefail ("-"|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*"-"|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*{quote}[^']|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*{quote}|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*|[uU][eE][sS][cC][aA][pP]|[uU][eE][sS][cC][aA]|[uU][eE][sS][cC]|[uU][eE][sS]|[uU][eE]|[uU])<br /><br/><br />I think this should be corrected to <br /><br /><br />uescapefail ("-"|[uU][eE][sS][cC][aA][pP][eE]{space}*"-"|[uU][eE][sS][cC][aA][pP][eE]{space}*{quote}[^']|[uU][eE][sS][cC][aA][pP][eE]{space}*{quote}|[uU][eE][sS][cC][aA][pP][eE]{space}*|[uU][eE][sS][cC][aA][pP]|[uU][eE][sS][cC][aA]|[uU][eE][sS][cC]|[uU][eE][sS]|[uU][eE]|[uU])<br /><br/><br />I have replaced whitespace with space. This has to be done because whitespace allows comments. This would causeconflict between some of the alternatives. I found this, while trying to make this rule work with LL(1). Just thought,it might be useful.<br /><br />Thanks,<br />Gokul.<br />
В списке pgsql-hackers по дате отправления: