X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Flexer.c;h=bbb005938fc8b0962a1447f3cafd43fb2ecabad3;hb=9c0c7dab25469d36b7dcee5df45e1f5767cccb5b;hp=e3725681c9c6a207332987046e5e9bee721008ee;hpb=da1bf03a84fa10f04e8c5438f22b523f0480dd7d;p=pspp diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index e3725681c9..bbb005938f 100644 --- a/src/language/lexer/lexer.c +++ b/src/language/lexer/lexer.c @@ -362,6 +362,24 @@ lex_sbc_missing (const char *sbc) msg (SE, _("Required subcommand %s was not specified."), sbc); } +/* Reports an error to the effect that specification SPEC may only be specified + once within subcommand SBC. */ +void +lex_spec_only_once (struct lexer *lexer, const char *sbc, const char *spec) +{ + lex_error (lexer, _("%s may only be specified once within subcommand %s"), + spec, sbc); +} + +/* Reports an error to the effect that specification SPEC is missing within + subcommand SBC. */ +void +lex_spec_missing (struct lexer *lexer, const char *sbc, const char *spec) +{ + lex_error (lexer, _("Required %s specification missing from %s subcommand"), + sbc, spec); +} + /* Prints a syntax error message containing the current token and given message MESSAGE (if non-null). */ void