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

around we go #11

Closed
ep12 opened this issue Jul 22, 2018 · 3 comments
Closed

around we go #11

ep12 opened this issue Jul 22, 2018 · 3 comments

Comments

@ep12
Copy link

ep12 commented Jul 22, 2018

In the example

Tommy was a dancer
While Tommy ain't nothing,
Knock down Tommy
And around we go

the usage/effect of around we go is unclear. It could be an alias for continue. But it is definitely not needed because any line that doesn't start with And ends the block. For a parser this could be difficult if the file doesn't end with a newline, don't forget to clean up opened blocks or throw an error (unexpected EOF) if you write a parser

@peteri
Copy link

peteri commented Jul 22, 2018

Currently makes most sense if it's an alias for "end", and I think while and until should require an end statement.

@dylanbeattie
Copy link
Collaborator

OK, so I'm playing with using blank lines to terminate blocks. This means you can't just use random blank lines to make your programs more readable, but let's face it, that's not why we're here...

@peteri
Copy link

peteri commented Jul 22, 2018

Hmm but I like around we go. although I am wonder if "chorus" could be used somewhere.
Currently bashing together a tokeniser / parser and so far this is only really painful bit, And could be a bit of a nuisance but it's doable.
Also I think a language called Rockstar should be unimplementable with standard lex/yacc.

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

3 participants