Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show syntax errors #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Show syntax errors #1

wants to merge 1 commit into from

Conversation

remy
Copy link

@remy remy commented Sep 5, 2023

I noticed (for a long while) the error messages in syntax weren't being shown. Turns out it was because most error calls don't pass in the file object, so I've used a bit of a blunt tool to fix it and added file as an extern (I hope that's okay).

Example output now when there's an error:

$ ../bin/pmas refurb.asm ../refurb.min ../refurb.sym > /dev/null

Symbol 'REG_EVENT2P' not defined.
refurb.asm:188 'movb [nn+REG_EVENT2P],INT2P_SHOCK'

1 error(s) found.
make: *** [refurb.min] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant