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

Check if EOF in the middle #91

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Conversation

BLBT1
Copy link
Contributor

@BLBT1 BLBT1 commented Dec 12, 2022

This PR tries to deal with issue better deal with EOF #53. As suggested, EOF is supposed to be at the end we just need to make sure EOF never comes in between. So this PR check in lexer to ensure there is no EOF appears in the middle of the words. Otherwise, it will print a error message to indicate the error.

@Abdur-rahmaanJ
Copy link
Owner

@BLBT1 Very neat! Btw this project yearns for some tests. Maybe you can start with writing for checking the EOF ^^, thanks!

@Abdur-rahmaanJ Abdur-rahmaanJ merged commit 3e5910b into Abdur-rahmaanJ:master Dec 12, 2022
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