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

Test a09.txt has multiline word #19

Open
jrrrp opened this issue Feb 18, 2020 · 1 comment
Open

Test a09.txt has multiline word #19

jrrrp opened this issue Feb 18, 2020 · 1 comment

Comments

@jrrrp
Copy link

jrrrp commented Feb 18, 2020

I was wondering if there was any news on how the test 'a09.txt' is being handled for lab 1? The test:

[][][[1][]][1][[[1]]

[1[1][1]1]

[ ][][ 1]

[a b [c] d]

[[[ 1] [-1

a[]a

creates a multiline word on the second to last line, which is said explicitly will not happen here:

A word can also be any sequence of ASCII characters beginning with [, and ending at the next ]. The word itself does not include the surrounding [ and ] characters. You can assume that such a sequence will never span a line-break.

Edit: Moved to public repo

@johnwickerson
Copy link
Contributor

You can assume that the words I am looking for do not have line breaks. The word-like sequence on the penultimate line contains a line break, therefore it is not a word, and your lexer should not recognise it as such.

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

2 participants