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

abort with error on empty HEADER name #564

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ekipan
Copy link
Contributor

@ekipan ekipan commented May 30, 2023

See discussion.

asm/compiler.asm Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
- EVALUATE now accepts multi-line strings.
- ( refills to accept multi-line comments when parsing EVALUATE strings.
- CHAR, HEADER and other parsing words no longer do REFILL on missing text.
- Defining words based on HEADER instead abort with an error.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines should probably be joined.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about putting "CHAR doesn't REFILL" back where it was and just having the note about "HEADER etc ABORTs" be separate?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like my original wording.
How about...

  • CHAR will no longer REFILL when reaching the end of input buffer.
  • Word-creating words will now abort with an error when an unexpected end of input buffer results in an empty word name.

Also moved W2 code up to not repeat the INX instructions.
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.

2 participants