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

Differentiate <- and <<- #4

Open
halpo opened this issue Jul 6, 2012 · 3 comments
Open

Differentiate <- and <<- #4

halpo opened this issue Jul 6, 2012 · 3 comments

Comments

@halpo
Copy link
Owner

halpo commented Jul 6, 2012

Parser does not differentiate between the double <<- from the single <-.

@dmurdoch
Copy link

dmurdoch commented Jul 7, 2012

Syntactically, those are the same, so I don't think the parser should distinguish them. It would be like distinguishing
mean from sd. There are semantic differences, not syntactic ones.

@halpo
Copy link
Owner Author

halpo commented Jul 9, 2012

you don't think that since they are different operators they should have different classes in the parse data? Seeing that parser differentiates = and <- it makes sense to me that <<- would also be differentiated.

@dmurdoch
Copy link

On 12-07-09 7:09 PM, Andrew Redd wrote:

you don't think that since they are different operators they should have different classes in the parse data? Seeing that parser differentiates = and <- it makes sense to me that <<- would also be differentiated.

= has a higher priority than <-, but <<- has the same priority. = is
also used to bind values to arguments, but <- is never used for that.

It probably makes sense for a syntax highlighter to display them
differently, but it should do that based on the text value, not the
token value.

Duncan

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

2 participants