Stream: contributing

Topic: Hints solving issue #6763


view this post on Zulip Isak Jones (he) (W1'21) (Jun 27 2024 at 15:31):

Hi - any advice to resolve this issue?

So far, I've consulted the compiler readme, added a test and printed out the IR, which wasn't too helpful (I think the error originates from before generating the IR), and I briefly stepped through with a debugger but it hasn't helped too much.

What I'm expecting, given that the parser relies on combinators, is that there's a function parser of this sort (in pseudo-code):

function_parser = Opt(signature_parser) + Ignore(newline_parser) + function_declaration_parser

and I just have to change that to

function_parser = Opt(signature_parser) + Ignore(one_or_more(newline_parser)) + function_declaration_parser

But I can't seem to find it - is this a fair expectation? Am I going in the right direction?

view this post on Zulip Isak Jones (he) (W1'21) (Jun 27 2024 at 16:23):

Actually after stepping further I found this! A fix shouldn't be too hard

view this post on Zulip Isak Jones (he) (W1'21) (Jun 27 2024 at 17:44):

PR up!


Last updated: Jul 06 2025 at 12:14 UTC