● Every error message now shows the surface lexeme — mod, ], ., ) — instead of Mod, RBracket, Dot, RParen. #25
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-prolog!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-20"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#20
Issue #20 is fixed.
Summary:
Symbolic operators and punctuation are backticked (
+,mod,]); atoms/variables/numbers are described asatom \foo
, variableX, etc.; Eofreads as "end of input".Display impl). Also lowercased "Expected" → "expected", "Unexpected" → "unexpected" for sentence-style
consistency, and quoted the literal tokens in parse_clause (
.or:-).lexeme, atom lexeme, EOF phrasing, and the expected … path showing the surface form.
The binary now reports e.g. Parse error in foo.pl: unexpected ]
at line 2 col 11— actionable for beginners,no internal variant names leaked. Pairs cleanly with the #18 line-number fix already shipped.
mod,],.,)— instead of Mod, RBracket, Dot, RParen.