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

Parser glitch #2

Closed
kaeluka opened this issue May 25, 2014 · 2 comments
Closed

Parser glitch #2

kaeluka opened this issue May 25, 2014 · 2 comments
Labels

Comments

@kaeluka
Copy link
Contributor

kaeluka commented May 25, 2014

The program

class Main
  def main() : void
    print "hello"

parses and compiles fine. If, however, I insert a new line or a comment before class Main, I get an unexpected '\n' or unexpected '-' error.

@kaeluka kaeluka added the bug label May 25, 2014
@EliasC
Copy link
Contributor

EliasC commented May 25, 2014

Fixed! Turns out that the lexer used handles trailing, but not leading, whitespace.

25 maj 2014 kl. 19:39 skrev Stephan Brandauer notifications@github.com:

The program

class Main
def main() : void
print "hello"
parses and compiles fine. If, however, I insert a new line or a comment before class Main, I get an unexpected '\n' or unexpected '-' error.


Reply to this email directly or view it on GitHub.

@kaeluka
Copy link
Contributor Author

kaeluka commented May 25, 2014

Thanks a lot!

@kaeluka kaeluka closed this as completed May 25, 2014
TobiasWrigstad referenced this issue Jun 13, 2014
It's a bug in pony, I only slightly modified counter.c such that
several threads send to one actor. The actor mailbox has a race that
leads to a crash. We'll need Sylvain's help to fix it without hurting
performance terribly.
kikofernandez pushed a commit that referenced this issue Jan 23, 2015
kikofernandez pushed a commit that referenced this issue Jan 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants