-
Notifications
You must be signed in to change notification settings - Fork 0
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
Syntax Starting With Param #61
Comments
Confirming that 209 is no longer applicable. I've also committed a fix that removes that message. Regarding "actor commanding" you can do
but not
since the comma is parsed by the interpreter as a concatenation "operator" in lists of multiple parameters or between different commands ("take the apple, the chair and the box" resp. "go west, take chair". It is a bit unfortunate that the "IF standard" form with |
Great!
I suspected so, but anyway the syntax is very close to the intended command, regardless of the comma omission.
Indeed, it would be nice to allow players to use commonly established commands conventions with Alan games too. If it was possible to implement in the parser an exception for commas which are mentioned in the |
Anyways, as soon as you approve the pending PR #55 I'll start working on some agreed upon fixes, so we start to clean up some of the (many) pending fixes, and then I can make some PRs for contents changes that are almost ready. Any ETA for Beta7 release? (I could set the ETA on the milestone, as a deadline estimate reminder) |
Well, it is probably of medium effort, but it will be a break of the current structure in an "unnatural" way, which always is risky and feels uncomfortable. |
In "Appendix F.2. Message Explanations" remove references to error 209 ("First element in a SYNTAX must be a player word.") which is no longer a compiler error. For more info, see: #61 and alan-if/alan@43d21d53.
Just a few thoughts on this ...
It's worth noting that the
Furthermore, it should only follow an Maybe compound actors names might introduce complexity here (e.g.
... effectively breaks up into I wonder if this, in conjunction with the fact that such a For example, the parser could have a special flag for syntaxes that contemplate a comma:
The flag could not just indicate the presence of an expected comma, but also its position. Basically, when the parser encounters a comma, before considering it and AND word it should check if there are any applicable syntaxes that include a comma, and if the comma matches the syntax position (or the above rule of 2nd position only). Surely, it seems that this would introduce some complexity on the Maybe the real problem would be use of multiple parameters in first position, which could entangle things up:
In the above example, we find a So, probably the use of Ultimately, this could be implemented as a special case, only permissible in syntaxes where the first parameter is an actor, and no I'm not sure that having this is really that important, after all. But from the player side, it's true that "habits die hard" and that most players are likely to be accustomed to its usage (after all, players don't care about IF tools, only about adventures and having fun). |
Polish text and add new contents to "App G. Localization": * Provide some general guidelines on how to approach localizing Alan to new languages. * Explain how to exploit *noise* Player-Words and `Synonyms` in i18n to handle articles variations in languages with grammatical gender. * Add "Useful Links" section at the end. * Annotate problems and TODOs (via comments). * Update "G.5. Word Order" (TBD): provide answers to annotated questions regarding the possibility of using `Syntax`es with param in first position. Update TBD admonition note accordingly. (See #61) * Rebuild HTML & PDF Manual.
Polish text and add new contents to "App G. Localization": * Provide some general guidelines on how to approach localizing Alan to new languages. * Explain how to exploit *noise* Player-Words and `Synonyms` in i18n to handle articles variations in languages with grammatical gender. * Add "Useful Links" section at the end. * Annotate problems and TODOs (via comments). * Update "G.5. Word Order" (TBD): provide answers to annotated questions regarding the possibility of using `Syntax`es with param in first position. Update TBD admonition note accordingly. (See #61) * Rebuild HTML & PDF Manual.
Polish text and add new contents to "App G. Localization": * Provide some general guidelines on how to approach localizing Alan to new languages. * Explain how to exploit *noise* Player-Words and `Synonyms` in i18n to handle articles variations in languages with grammatical gender. * Add "Useful Links" section at the end. * Annotate problems and TODOs (via comments). * Update "G.5. Word Order" (TBD): provide answers to annotated questions regarding the possibility of using `Syntax`es with param in first position. Update TBD admonition note accordingly. (See #61) * Rebuild HTML & PDF Manual. Change document `revremark` to "Beta7 Ed. work".
In "Appendix F.2. Message Explanations" remove references to error 209 ("First element in a SYNTAX must be a player word.") which is no longer a compiler error. For more info, see: #61 and alan-if/alan@43d21d53.
Polish text and add new contents to "App G. Localization": * Provide some general guidelines on how to approach localizing Alan to new languages. * Explain how to exploit *noise* Player-Words and `Synonyms` in i18n to handle articles variations in languages with grammatical gender. * Add "Useful Links" section at the end. * Annotate problems and TODOs (via comments). * Update "G.5. Word Order" (TBD): provide answers to annotated questions regarding the possibility of using `Syntax`es with param in first position. Update TBD admonition note accordingly. (See #61) * Rebuild HTML & PDF Manual. Change document `revremark` to "Beta7 Ed. work".
Polish text and add new contents to "App G. Localization": * Provide some general guidelines on how to approach localizing Alan to new languages. * Explain how to exploit *noise* Player-Words and `Synonyms` in i18n to handle articles variations in languages with grammatical gender. * Add "Useful Links" section at the end. * Annotate problems and TODOs (via comments). * Update "G.5. Word Order" (TBD): provide answers to annotated questions regarding the possibility of using `Syntax`es with param in first position. Update TBD admonition note accordingly. (See #61) * Rebuild HTML & PDF Manual. Change document `revremark` to "Beta7 Ed. work".
In "Appendix F.2. Message Explanations" remove references to error 209 ("First element in a SYNTAX must be a player word.") which is no longer a compiler error. For more info, see: #61 and alan-if/alan@43d21d53.
Polish text and add new contents to "App G. Localization": * Provide some general guidelines on how to approach localizing Alan to new languages. * Explain how to exploit *noise* Player-Words and `Synonyms` in i18n to handle articles variations in languages with grammatical gender. * Add "Useful Links" section at the end. * Annotate problems and TODOs (via comments). * Update "G.5. Word Order" (TBD): provide answers to annotated questions regarding the possibility of using `Syntax`es with param in first position. Update TBD admonition note accordingly. (See #61) * Rebuild HTML & PDF Manual. Change document `revremark` to "Beta7 Ed. work".
The syntax section is already fully updated for the "parameter first" feature. So I checked the box ;-) So should probably add the link from "Word Order" as mentioned in #28. |
Syntax
/Verb
:> Bob, take the apple
" are possible in Alan (these being common in other IF systems, authors and players might expect to find them in Alan too).In Appendix F.2. Message Explanations we read:
This statement seems no longer true right now. The following Alan code compiles without error and works fine, disproving the above statement:
And you can actually run it and type:
The text was updated successfully, but these errors were encountered: