-
Notifications
You must be signed in to change notification settings - Fork 5
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
support no space between spoken form and parens? #21
Comments
No, because that would clash with the special syntax |
I don't think it actually clashes with that syntax, and it appears you have special cases for all the functions anyway, so I'm not sure I see a problem Fwiw, note that on the converse, |
Inconsistencies are unfortunately difficult to avoid because the Talon syntax is ambiguous. |
In my experience, using higher precedence for Therefore this is probably best solved with lookahead in the lexer. |
Ok so just to make sure we're on the same page, how do you want to parse the following: hello(world): bar
key (a): bar And does today's parsing of this program match your desired parsing? If the answer to that last question is "yes", then we can close this issue, but just wanted to make it all explicit To be clear, Talon parses it as equivalent to the following: hello world: bar
key a: bar If we do parse them the same way Talon does, I'd argue the autoformatter should transform them to the second form above, but that's obv out of scope for this repo |
I agree with these parsings. The cases I'm unsure about are: key(not-a-valid-key-name): bar Do you know what Talon parses these as? |
Pretty sure the parser doesn't care about valid key names. The content inside the parentheses is just a string. That would probably generate a unknown key error when Talon tries to utilize the key value. |
Closing in favour of meta issue #33 |
Talon supports
hello(world): bar
to map a spoken form equivalent tohello world: bar
. Do we want to support this?The text was updated successfully, but these errors were encountered: