Tyler Crosby on 29 Feb 2004 22:53:46 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [spoon-discuss] Proposal syntax


Mark Karasek wrote:

I've been thinking a bit about how to go about automating proposals in order to make Dave happier. There are a few standard actions that should cover most proposals:

Create rule
Repeal rule
Replace rule

If we wanted, there are a few additional ones we could use in addition to "replace":
Change (first/every) occurance of "text" in rule
Add/remove (paragraph/(sub)section)

Once we decide on what actions are going to be automated, we just have to come up with a format that everyone (including Perl, which will be doing the parsing) is comfortable with. (I'm a CS major, so something I think is perfectly clear may well be gibberish to others.) Some ideas:

Lispish (I'm a fan of this one):
(createrule
 (title "Fooing the bar")
 (keywords foo bar baz)
 (layer 3)
"Players may foo the bar by stating that they do so in a public forum. When this occurs, the bar is said to have been fooed."
)

I definitely like the above option... so would we send these new automationn scripts to some other list, which would cause the database to be updated, a message to be sent out to spoon-business, etc.? And would it be able to handle omitting things like assigning keywords and layers, so as to just give them default values?

XMLish (very verbose, probably not the best choice):
<createrule>
    <title>Fooing the bar</title>
    <keywordlist>
        <keyword>foo</keyword>
        <keyword>bar</keyword>
        <keyword>baz</keyword>
    </keywordlist>
    <layer>3</layer>
Players may foo the bar by stating that they do so in a public forum. When this occurs, the bar is said to have been fooed.
</createrule>

Another option (perhaps more user-friendly):
create rule {
    Fooing the bar
    Keywords: foo bar baz
    Layer: 3
    {
Players may foo the bar by stating that they do so in a public forum. When this occurs, the bar is said to have been fooed.
    }
}

Although this one is rather nice as well...

Other options certainly exist; these are just a few ideas I threw together.

Dave, would you mind terribly if had a look at the scripts that currently exist? There are various other things I'd like to look into (for example, on the rules and props pages, have occurances of "Rule #"/"r#" actually be links to that rule). I may be able to find other things to improve as well.

Comments? Ideas? Do people actually _want_ automated props, or would they just prefer to make it a Ministry/Duty to take care of it?

--The Pusher Robot
_______________________________________________
spoon-discuss mailing list
spoon-discuss@xxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/spoon-discuss


-- The Voice --
_______________________________________________
spoon-discuss mailing list
spoon-discuss@xxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/spoon-discuss