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

Parsing error with Verilog task enabling #69

Open
YikeZhou opened this issue Sep 29, 2023 · 0 comments
Open

Parsing error with Verilog task enabling #69

YikeZhou opened this issue Sep 29, 2023 · 0 comments

Comments

@YikeZhou
Copy link

Given this:

task automatic t1;
  input a;
  output b;
  begin
    a = b;
  end
endtask

module top;
  wire i, j;
  always @(*) begin
    t1(i, j);
  end
endmodule

Run tree-sitter like this:

tree-sitter parse top.v

Got this error:

top.v	1 ms	(ERROR [11, 6] - [11, 7])

According to this part of the output, the list of arguments is incorrectly identified as list_of_variable_decl_assignments.

(ERROR [11, 6] - [11, 7])
(list_of_variable_decl_assignments [11, 7] - [11, 11]
  (variable_decl_assignment [11, 7] - [11, 8]
    (simple_identifier [11, 7] - [11, 8]))
  (variable_decl_assignment [11, 10] - [11, 11]
    (simple_identifier [11, 10] - [11, 11])))
(ERROR [11, 11] - [11, 12]))))))))))))))
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