Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^7: poll ideas quest 2021

by Corion (Patriarch)
on Aug 18, 2021 at 08:45 UTC ( [id://11135917]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (None)
    As of 2024-04-25 00:47 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found