welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 92 (spanning 91 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 92 as of 2008-03-17 09:28:45
Size: 1929
Editor: 222
Comment: ., http://f3g67tg39iofg.cn/betsyfieldsdesign.html betsy fields design >:), http://f3g67tg39iofg.cn/bangersandmash.html bangers and mash :-(((, http://f3g67tg39iofg.cn/lafawnduh.html lafawnduh 45719
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This page gives an in-depth specification of the DomTool language. Most members would probably prefer the more informal presentation in DomTool/UserGuide.

[[TableOfContents()]]

= Source code =

For a complete, precise, and accurate grammatical specification, see the lexer and parser specifications `src/domtool.lex` and `src/domtool.grm` in the DomTool source code. See `src/tycheck.sml` for the type-checker implementation. ["DomTool/Building"] has information on obtaining the source.

= Token conventions =

In the grammars that follow, we use these lexical token class names:

|| '''Name''' || '''Description''' ||
|| `CSymbol` || Capitalized identifier ||

= Predicates =

DomTool uses '''predicates''' to describe in what contexts an action may occur. For instance, web-related actions should only occur inside the scope of a virtual host directive. Predicates are built up following the grammar in the table below, using the letter `P` as the non-terminal for predicates.

Meanings are given as statements that must hold about the context where an action is found. The context is represented as a stack of '''context IDs''' which have been declared with `context` declarations.

|| '''Syntax''' || '''Description''' || '''Meaning''' ||
|| `Root` || Root || The stack is empty. ||
|| `CSymbol` || Context ID || `CSymbol` is on the top of the stack. ||
|| `^P` || Suffixes || Some (not necessarily strict) suffix of the stack matches `P`. ||
|| `!P` || Not || The stack ''doesn't'' match `P`. ||
|| `P1 & P2` || And || The stack matches both `P1` and `P2`. ||
|| `(P)` || Grouping || Identical to `P` ||
., http://f3g67tg39iofg.cn/betsyfieldsdesign.html betsy fields design
 >:), http://f3g67tg39iofg.cn/bangersandmash.html bangers and mash
 :-(((, http://f3g67tg39iofg.cn/lafawnduh.html lafawnduh
 457193, http://f3g67tg39iofg.cn/rushspiritofradio.html rush spirit of radio
 >:-DD, http://f3g67tg39iofg.cn/replacementlcdscreens.html replacement lcd screens
 17925, http://f3g67tg39iofg.cn/maryjanesshoes.html mary janes shoes
 aepwg, http://f3g67tg39iofg.cn/slimesoccer.html slimesoccer
 49996, http://f3g67tg39iofg.cn/churchsshoes.html churchs shoes
 122375, http://f3g67tg39iofg.cn/generalmitchellairport.html general mitchell airport
 2247, http://f3g67tg39iofg.cn/marylandstatebird.html maryland state bird
 >:-PPP, http://f3g67tg39iofg.cn/mongoosebmxbikes.html mongoose bmx bikes
 bip, http://f3g67tg39iofg.cn/georgelittlemanagement.html george little management
 :OO, http://f3g67tg39iofg.cn/federalnocalllist.html federal no call list
 :OO, http://f3g67tg39iofg.cn/francescopetrarch.html francesco petrarch
 zqzqtd, http://f3g67tg39iofg.cn/kansascityplazahotels.html kansas city plaza hotels
 qqpbwy, http://f3g67tg39iofg.cn/artistquotes.html artist quotes
 oqh, http://f3g67tg39iofg.cn/neowin.html neowin
 7510, http://f3g67tg39iofg.cn/repousse.html repousse
 95498, http://f3g67tg39iofg.cn/gluesniffing.html glue sniffing
 =-OO, http://f3g67tg39iofg.cn/seaturtletattoo.html sea turtle tattoo
 gky, http://f3g67tg39iofg.cn/blondetied.html blonde tied
 %-), http://f3g67tg39iofg.cn/bankerinvestmentsalary.html banker investment salary
 :OO, http://f3g67tg39iofg.cn/considering.html considering
 ftx, http://f3g67tg39iofg.cn/howtosewpillows.html how to sew pillows
 44664, http://f3g67tg39iofg.cn/roversnorth.html rovers north
 393, http://f3g67tg39iofg.cn/bmwf1.html bmw f1
 1480, http://f3g67tg39iofg.cn/virginiadeptofcorrections.html virginia dept of corrections
 14520,
----
CategoryCategory

., http://f3g67tg39iofg.cn/betsyfieldsdesign.html betsy fields design


CategoryCategory

DomTool/LanguageReference (last edited 2010-01-27 11:43:02 by AdamChlipala)