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

segmentation fault while lexing #1178

Closed
flip111 opened this issue Feb 1, 2016 · 1 comment
Closed

segmentation fault while lexing #1178

flip111 opened this issue Feb 1, 2016 · 1 comment
Assignees
Milestone

Comments

@flip111
Copy link

flip111 commented Feb 1, 2016

I would consider this issue low priority, but i'm reporting it just to keep a record. When i have zephir code public®static it segfaults.

Also i would like to notify that there is no whitespace requirement after keywords. "public" is recognized as a token if it isn't followed by [a-zA-Z_\\], otherwise it's part of another token. Possibly one of these https://github.com/phalcon/zephir/blob/f78e01d3a5d4e988fd30efe269d432ef635a56c1/parser/parser/scanner.re#L486-L665 When public is matched and then immediately a new token starts (without whitespace) it likely syntax error later by the parser.

@sergeyklay
Copy link
Member

This issue was moved to zephir-lang/php-zephir-parser#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants