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

Add proper parsing for function calls #17

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

bbannier
Copy link
Member

This works around the issue reported in zeek/zeekscript#69.

This works around the issue reported in zeek/zeekscript#69.
@bbannier bbannier self-assigned this Jan 16, 2024
@bbannier bbannier requested review from ckreibich and awelzel January 16, 2024 18:02
@bbannier bbannier closed this Jan 18, 2024
@bbannier bbannier reopened this Jan 18, 2024
Comment on lines +26 to +40
(stmt
(expr
(expr
(id)
(expr_list
(expr
(constant
(integer)))))
(expr
(id)
(expr_list
(expr
(constant
(integer)))))))
(nl))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f(1) + f(1); was previously parsed as this monstrosity:

  (stmt
    (expr
      (expr
        (expr
          (expr
            (id))
          (expr_list
            (expr
              (constant
                (integer)))))
        (expr
          (id)))
      (expr_list
        (expr
          (constant
            (integer))))))

Copy link
Contributor

@awelzel awelzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatted with Benjamin a bit, approving.

@bbannier bbannier merged commit de9ac9d into main Jan 18, 2024
@bbannier bbannier deleted the topic/bbannier/multiple-function-calls branch January 18, 2024 11:09
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

Successfully merging this pull request may close these issues.

2 participants