e=p[i]
if type(e) == "string" then
if not lx:is_keyword (lx:next(), e) then
- parse_error (lx, "Keyword '%s' expected", e) end
+ parse_error (lx, "A keyword was expected, probably `%s'.", e) end
elseif is_parser (e) then
table.insert (r, e (lx))
else
- gg.parse_error (lx,"Sequence `%s': element #%i is not a string "..
+ gg.parse_error (lx,"Sequence `%s': element #%i is neither a string "..
"nor a parser: %s",
p.name, i, table.tostring(e))
end
-- Check for non-associative operators, and complain if applicable.
-----------------------------------------
elseif p2.assoc=="none" and p2.prec==prec then
- parser_error (lx, "non-associative operator!")
+ parse_error (lx, "non-associative operator!")
-----------------------------------------
-- No infix operator suitable at that precedence