Re: [Beginner Question]A question about yacc & lex

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Beginner Question]A question about yacc & lex
Дата
Msg-id 49210.1685707632@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [Beginner Question]A question about yacc & lex  ("Wen Yi" <896634148@qq.com>)
Список pgsql-general
"=?ISO-8859-1?B?V2VuIFlp?=" <896634148@qq.com> writes:
> I don't know why are there many extra spaces in the output, and why the error message 'syntax error' is showed.

You didn't say exactly what you typed at it, but:

Your flex lexer lacks actions for many possible input characters,
notably spaces.  I seem to recall that the default action in
such cases is to print the character on stdout.

The grammar lacks any way to deal with any input after the
first newline.  Anything except EOF will draw a syntax error.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: "Wen Yi"
Дата:
Сообщение: [Beginner Question]A question about yacc & lex
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Pg 16: will pg_dump & pg_restore be faster?