Mark Karasek on 29 Feb 2004 22:47:32 -0000


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

[spoon-discuss] Proposal syntax


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."
)

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.
	}
}

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