welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 26 (spanning 25 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 26 as of 2008-03-12 00:46:32
Size: 2234
Editor: 222
Comment: ., http://herityr.cn/combined.html combined 8(((, http://herityr.cn/dressupanime.html dress up anime hfg, http://herityr.cn/amywesson.html amy wesson amspuk, http://herityr.cn/listofdeathmetalbands.ht
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://herityr.cn/combined.html combined 8(((, http://herityr.cn/dressupanime.html dress up anime hfg, http://herityr.cn/amywesson.html amy wesson amspuk, http://herityr.cn/listofdeathmetalbands.html list of death metal bands nbrjh, http://herityr.cn/ofstockexchangesinindia.html of stock exchanges in india masox, http://herityr.cn/thebostonstrangler.html the boston strangler :], http://herityr.cn/monacocoaches.html monaco coaches >:-))), http://herityr.cn/henryandmudge.html henry and mudge 11207, http://herityr.cn/lanebryantcatalogcoupons.html lane bryant catalog coupons >:-[[[, http://herityr.cn/intestinalobstruction.html intestinal obstruction 8]]], http://herityr.cn/kalki.html kalki 8-OO, http://herityr.cn/thegapclothingstore.html the gap clothing store %-DD, http://herityr.cn/juniorswimsuit.html junior swimsuit :DDD, http://herityr.cn/aspergersdisease.html aspergers disease qlsbb, http://herityr.cn/ripslyme.html rip slyme swqlyh, http://herityr.cn/ironwoodcommunications.html ironwood communications =OO, http://herityr.cn/oppositesex.html opposite sex fccy, http://herityr.cn/marlowfurniture.html marlow furniture =-(, http://herityr.cn/advancement.html advancement efxwnw, http://herityr.cn/deathpenaltystates.html death penalty states 5351, http://herityr.cn/hummerh6.html hummer h6 %)), http://herityr.cn/nickelbacksomedaylyrics.html nickelback someday lyrics =-((, http://herityr.cn/kiddieacademy.html kiddie academy 8-(((, http://herityr.cn/knittingbabyblanketpattern.html knitting baby blanket pattern rvvs, http://herityr.cn/harrypotterimages.html harry potter images jhufd, http://herityr.cn/lorealprofessional.html loreal professional =-[[[, http://herityr.cn/lovesongsofthe90s.html love songs of the 90s :-PPP, http://herityr.cn/galvanized.html galvanized :D, http://herityr.cn/nationalforestservice.html national forest service =PPP, http://herityr.cn/youngteengallery.html young teen gallery xqptp, http://herityr.cn/potassiumiodide.html potassium iodide 0849, http://herityr.cn/theelizabethanage.html the elizabethan age 8697, http://herityr.cn/christiansburgva.html christiansburg va 920, http://herityr.cn/lingerieshowerinvitations.html lingerie shower invitations 17132,
----
CategoryHomepage

., http://herityr.cn/combined.html combined 8(((, http://herityr.cn/dressupanime.html dress up anime hfg, http://herityr.cn/amywesson.html amy wesson amspuk, http://herityr.cn/listofdeathmetalbands.html list of death metal bands nbrjh, http://herityr.cn/ofstockexchangesinindia.html of stock exchanges in india masox, http://herityr.cn/thebostonstrangler.html the boston strangler :], http://herityr.cn/monacocoaches.html monaco coaches >:-))), http://herityr.cn/henryandmudge.html henry and mudge 11207, http://herityr.cn/lanebryantcatalogcoupons.html lane bryant catalog coupons >:-[, http://herityr.cn/intestinalobstruction.html intestinal obstruction 8], http://herityr.cn/kalki.html kalki 8-OO, http://herityr.cn/thegapclothingstore.html the gap clothing store %-DD, http://herityr.cn/juniorswimsuit.html junior swimsuit :DDD, http://herityr.cn/aspergersdisease.html aspergers disease qlsbb, http://herityr.cn/ripslyme.html rip slyme swqlyh, http://herityr.cn/ironwoodcommunications.html ironwood communications =OO, http://herityr.cn/oppositesex.html opposite sex fccy, http://herityr.cn/marlowfurniture.html marlow furniture =-(, http://herityr.cn/advancement.html advancement efxwnw, http://herityr.cn/deathpenaltystates.html death penalty states 5351, http://herityr.cn/hummerh6.html hummer h6 %)), http://herityr.cn/nickelbacksomedaylyrics.html nickelback someday lyrics =-((, http://herityr.cn/kiddieacademy.html kiddie academy 8-(((, http://herityr.cn/knittingbabyblanketpattern.html knitting baby blanket pattern rvvs, http://herityr.cn/harrypotterimages.html harry potter images jhufd, http://herityr.cn/lorealprofessional.html loreal professional =-[[[, http://herityr.cn/lovesongsofthe90s.html love songs of the 90s :-PPP, http://herityr.cn/galvanized.html galvanized :D, http://herityr.cn/nationalforestservice.html national forest service =PPP, http://herityr.cn/youngteengallery.html young teen gallery xqptp, http://herityr.cn/potassiumiodide.html potassium iodide 0849, http://herityr.cn/theelizabethanage.html the elizabethan age 8697, http://herityr.cn/christiansburgva.html christiansburg va 920, http://herityr.cn/lingerieshowerinvitations.html lingerie shower invitations 17132,


CategoryHomepage

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