in reply to Re^6: poll ideas quest 2021
in thread poll ideas quest 2021

I think the problem with -bar is that it is difficult to disambiguate between the expression '-' bareword and '-bareword' as a single token. Maybe you can fix that by post-processing the generated tree, but my impression is that Sawyer wanted to avoid any "special" logic and have a purely EBNF-driven approach.

Replies are listed 'Best First'.
Re^8: poll ideas quest 2021
by haukex (Archbishop) on Aug 18, 2021 at 08:51 UTC
    I think the problem with -bar is that it is difficult to disambiguate between the expression '-' bareword and '-bareword' as a single token.

    Hmmm... you mean like -bareword and -function_call? Since standard requires parens on function calls, which is something I understand is probably going to be necessary for parseability, wouldn't that disambiguate the two? Or do you have another counterexample in mind?