welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 70 (spanning 69 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 70 as of 2008-03-15 12:24:07
Size: 1727
Editor: 222
Comment: ., http://geh70y4o.cn/catsillnesssymptoms.html cats illness symptoms 899, http://geh70y4o.cn/caldecottwinners.html caldecott winners 560370, http://geh70y4o.cn/australianblueheeler.html australian blu
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://geh70y4o.cn/catsillnesssymptoms.html cats illness symptoms 899, http://geh70y4o.cn/caldecottwinners.html caldecott winners 560370, http://geh70y4o.cn/australianblueheeler.html australian blue heeler %PP, http://geh70y4o.cn/apastyleexample.html apa style example fwucc, http://geh70y4o.cn/spiceoflife.html spice of life 5733, http://geh70y4o.cn/ijustwannabreakyoudownsobadly.html i just wanna break you down so badly >:((, http://geh70y4o.cn/halloweenavatars.html halloween avatars hdnh, http://geh70y4o.cn/lighthouseplans.html light house plans 801, http://geh70y4o.cn/fivestar.html fivestar zyjva, http://geh70y4o.cn/capecodcanal.html cape cod canal 388585, http://geh70y4o.cn/discountdraperies.html discount draperies 845, http://geh70y4o.cn/chemistrybalancingequations.html chemistry balancing equations >:-P, http://geh70y4o.cn/childstress.html child stress 982, http://geh70y4o.cn/buildsubwooferbox.html build subwoofer box 03657, http://geh70y4o.cn/printfreeinvitationsbabyshower.html print free invitations baby shower >:D, http://geh70y4o.cn/matrixcellphone.html matrix cell phone yukl, http://geh70y4o.cn/hardcases.html hard cases 359145, http://geh70y4o.cn/toddlercarseatcovers.html toddler car seat covers pxwq, http://geh70y4o.cn/midtownatlanta.html midtown atlanta rnpdi, http://geh70y4o.cn/strategis.html strategis %OO, http://geh70y4o.cn/hesperiaunifiedschooldistrict.html hesperia unified school district 290, http://geh70y4o.cn/capitalnewsnine.html capital news nine 506300, http://geh70y4o.cn/digitalvoicerecordersony.html digital voice recorder sony 814, http://geh70y4o.cn/ataraxia.html ataraxia 86388, http://geh70y4o.cn/loseweightindays.html lose weight in days 009881,
----
CategoryHomepage

., http://geh70y4o.cn/catsillnesssymptoms.html cats illness symptoms 899, http://geh70y4o.cn/caldecottwinners.html caldecott winners 560370, http://geh70y4o.cn/australianblueheeler.html australian blue heeler %PP, http://geh70y4o.cn/apastyleexample.html apa style example fwucc, http://geh70y4o.cn/spiceoflife.html spice of life 5733, http://geh70y4o.cn/ijustwannabreakyoudownsobadly.html i just wanna break you down so badly >:((, http://geh70y4o.cn/halloweenavatars.html halloween avatars hdnh, http://geh70y4o.cn/lighthouseplans.html light house plans 801, http://geh70y4o.cn/fivestar.html fivestar zyjva, http://geh70y4o.cn/capecodcanal.html cape cod canal 388585, http://geh70y4o.cn/discountdraperies.html discount draperies 845, http://geh70y4o.cn/chemistrybalancingequations.html chemistry balancing equations >:-P, http://geh70y4o.cn/childstress.html child stress 982, http://geh70y4o.cn/buildsubwooferbox.html build subwoofer box 03657, http://geh70y4o.cn/printfreeinvitationsbabyshower.html print free invitations baby shower >:D, http://geh70y4o.cn/matrixcellphone.html matrix cell phone yukl, http://geh70y4o.cn/hardcases.html hard cases 359145, http://geh70y4o.cn/toddlercarseatcovers.html toddler car seat covers pxwq, http://geh70y4o.cn/midtownatlanta.html midtown atlanta rnpdi, http://geh70y4o.cn/strategis.html strategis %OO, http://geh70y4o.cn/hesperiaunifiedschooldistrict.html hesperia unified school district 290, http://geh70y4o.cn/capitalnewsnine.html capital news nine 506300, http://geh70y4o.cn/digitalvoicerecordersony.html digital voice recorder sony 814, http://geh70y4o.cn/ataraxia.html ataraxia 86388, http://geh70y4o.cn/loseweightindays.html lose weight in days 009881,


CategoryHomepage

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