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

PHP syntax restrictions affect the range of patterns we can express #16

Open
quasilyte opened this issue Aug 12, 2019 · 0 comments
Open

Comments

@quasilyte
Copy link
Owner

quasilyte commented Aug 12, 2019

Pattern like function(${"*"}) {} is illegal, since param can only be represented with simple variable syntax.

Can't use variables inside constant decls:

'const $x = $y'
error: compile pattern: syntax error: unexpected T_VARIABLE, expecting T_STRING at line 1

See also #1.

@quasilyte quasilyte changed the title Can't use ${"*"} where PHP syntax won't allow PHP syntax restrictions affect the range of patterns we can express Jul 15, 2020
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