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

skip_comment() does not handle unterminated comment #8

Open
cm1776 opened this issue Jul 15, 2019 · 0 comments
Open

skip_comment() does not handle unterminated comment #8

cm1776 opened this issue Jul 15, 2019 · 0 comments

Comments

@cm1776
Copy link

cm1776 commented Jul 15, 2019

In spi.py (https://github.com/rspivak/lsbasi/blob/master/part15/spi.py), the skip_comment() function (starts on line 172) does not properly handle input source that contains an un-terminated comment.

For example, when run on the input below, spi.py hangs:

PROGRAM Test;
VAR
a : INTEGER;
BEGIN
a := 10 * 25; { Un-terminated comment. FREEZE!
END.

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

No branches or pull requests

1 participant