An abstract parser class. License: AGPL3 Copyright Pascal J. Bourguignon 2004 - 2015 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>
(advance parser) |
generic-function |
Shitf next-token into token and scan the next token.
parser |
class |
A parser.
Class precedence list: PARSER STANDARD-OBJECT T
Class init args: SCANNER
parser-error |
condition |
A parser error.
Class precedence list: PARSER-ERROR ERROR SERIOUS-CONDITION CONDITION STANDARD-OBJECT T
Class init args: FILE LINE COLUMN GRAMMAR SCANNER NON-TERMINAL-STACK FORMAT-CONTROL FORMAT-ARGUMENTS
(parser-error-format-arguments x) |
generic-function |
The error message format control arguments.
(parser-error-format-control x) |
generic-function |
The error message format control string.
(parser-error-next-token x) |
generic-function |
The next-token where the error was detected.
(parser-error-parser x) |
generic-function |
The parser that signaled the error.
(parser-error-token x) |
generic-function |
The token where the error was detected.
(parser-next-token parser) |
generic-function |
The next-token of the parser.
(parser-scanner parser) |
generic-function |
The scanner of the parser.
(parser-token parser) |
generic-function |
The current token of the parser.
(report-error parser message &rest arguments) |
generic-function |
Signal a parser-error.