welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 17 (spanning 16 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 17 as of 2008-03-11 01:26:46
Size: 1738
Editor: 222
Comment: ., http://fpbaspifpia.cn/cosmeticlasersurgery.html cosmetic laser surgery 303, http://fpbaspifpia.cn/ideasforshortstories.html ideas for short stories 050185, http://fpbaspifpia.cn/mapoffloridapanhand
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://fpbaspifpia.cn/cosmeticlasersurgery.html cosmetic laser surgery 303, http://fpbaspifpia.cn/ideasforshortstories.html ideas for short stories 050185, http://fpbaspifpia.cn/mapoffloridapanhandle.html map of florida panhandle %-), http://fpbaspifpia.cn/printablegiftcertificates.html printable gift certificates 3165, http://fpbaspifpia.cn/mickeyears.html mickey ears 62112, http://fpbaspifpia.cn/duac.html duac vnheqc, http://fpbaspifpia.cn/rowenagalam.html rowena galam >:-OOO, http://fpbaspifpia.cn/keylog.html keylog mpnbd, http://fpbaspifpia.cn/bucksfizz.html bucks fizz 6562, http://fpbaspifpia.cn/oposiciones.html oposiciones %], http://fpbaspifpia.cn/rapmodels.html rap models 8[[, http://fpbaspifpia.cn/fuckimdead.html fuck im dead xmm, http://fpbaspifpia.cn/harriettubmanandtheundergroundrailroad.html harriet tubman and the underground railroad %DDD, http://fpbaspifpia.cn/checkingyourcredit.html checking your credit xuatzh, http://fpbaspifpia.cn/distancefromsun.html distance from sun 2814, http://fpbaspifpia.cn/gobletoffirepictures.html goblet of fire pictures idsjw, http://fpbaspifpia.cn/richardmorgan.html richard morgan :DD, http://fpbaspifpia.cn/drjohns.html dr johns 768, http://fpbaspifpia.cn/wirehairedterrier.html wire haired terrier %-), http://fpbaspifpia.cn/marchcrafts.html march crafts 852404, http://fpbaspifpia.cn/lexingtonnewspapers.html lexington newspapers %-]], http://fpbaspifpia.cn/safecoinsurancecompany.html safeco insurance company dsodb, http://fpbaspifpia.cn/tiffanyspromdresses.html tiffanys prom dresses 175681, http://fpbaspifpia.cn/missnudeusa.html miss nude usa avibt, http://fpbaspifpia.cn/informationonturtles.html information on turtles grqzm,
----
CategorySystemAdministration

., http://fpbaspifpia.cn/cosmeticlasersurgery.html cosmetic laser surgery 303, http://fpbaspifpia.cn/ideasforshortstories.html ideas for short stories 050185, http://fpbaspifpia.cn/mapoffloridapanhandle.html map of florida panhandle %-), http://fpbaspifpia.cn/printablegiftcertificates.html printable gift certificates 3165, http://fpbaspifpia.cn/mickeyears.html mickey ears 62112, http://fpbaspifpia.cn/duac.html duac vnheqc, http://fpbaspifpia.cn/rowenagalam.html rowena galam >:-OOO, http://fpbaspifpia.cn/keylog.html keylog mpnbd, http://fpbaspifpia.cn/bucksfizz.html bucks fizz 6562, http://fpbaspifpia.cn/oposiciones.html oposiciones %], http://fpbaspifpia.cn/rapmodels.html rap models 8, http://fpbaspifpia.cn/fuckimdead.html fuck im dead xmm, http://fpbaspifpia.cn/harriettubmanandtheundergroundrailroad.html harriet tubman and the underground railroad %DDD, http://fpbaspifpia.cn/checkingyourcredit.html checking your credit xuatzh, http://fpbaspifpia.cn/distancefromsun.html distance from sun 2814, http://fpbaspifpia.cn/gobletoffirepictures.html goblet of fire pictures idsjw, http://fpbaspifpia.cn/richardmorgan.html richard morgan :DD, http://fpbaspifpia.cn/drjohns.html dr johns 768, http://fpbaspifpia.cn/wirehairedterrier.html wire haired terrier %-), http://fpbaspifpia.cn/marchcrafts.html march crafts 852404, http://fpbaspifpia.cn/lexingtonnewspapers.html lexington newspapers %-, http://fpbaspifpia.cn/safecoinsurancecompany.html safeco insurance company dsodb, http://fpbaspifpia.cn/tiffanyspromdresses.html tiffanys prom dresses 175681, http://fpbaspifpia.cn/missnudeusa.html miss nude usa avibt, http://fpbaspifpia.cn/informationonturtles.html information on turtles grqzm,


CategorySystemAdministration

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