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

Errors while parsing double assignments #40

Closed
displague opened this issue Mar 21, 2015 · 5 comments
Closed

Errors while parsing double assignments #40

displague opened this issue Mar 21, 2015 · 5 comments

Comments

@displague
Copy link
Contributor

stderr yields errors when parsing

<cfset x = y = 0>
@ryaneberly
Copy link
Contributor

I needed to see that in the official documentation. its there. yikes!
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS328B9130-F922-4ddb-B78B-8817CA81F8E3.html

Even worse:
<cfset var x = var y = 0>
is valid.

That's some weird language design.
We'll see what we can do to accommodate it. it introduces a whole layer of parsing complexity that just shouldn't be necessary.... :-)

@jjames967
Copy link
Collaborator

I had never seen that before. That is kind of yucky. Is that through the Jericho parser or Antlr?

On March 20, 2015, at 10:19 PM, ryaneberly [email protected] wrote:

I needed to see that in the official documentation. its there. yikes!
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS328B9130-F922-4ddb-B78B-8817CA81F8E3.html

Even worse:

is valid.

That's some weird language design.

We'll see what we can do to accommodate it. it introduces a whole layer of parsing complexity that just shouldn't be necessary.... :-)


Reply to this email directly or view it on GitHub.

@ryaneberly
Copy link
Contributor

It's going to have to be an Antlr solution. The whole expression inside gets parsed as a whole expression with the Antlr portion of the parser.

@displague
Copy link
Contributor Author

@ryaneberly
Copy link
Contributor

fixed in https://github.com/cfparser/cfparser master

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