welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 78 (spanning 77 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 78 as of 2008-03-16 07:19:23
Size: 2475
Editor: 193
Comment: ., http://ghbew873o.cn/restaurantforlease.html restaurant for lease 507715, http://ghbew873o.cn/replacementlaptopbattery.html replacement laptop battery cmw, http://ghbew873o.cn/triax.html triax rgik,
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://ghbew873o.cn/restaurantforlease.html restaurant for lease 507715, http://ghbew873o.cn/replacementlaptopbattery.html replacement laptop battery cmw, http://ghbew873o.cn/triax.html triax rgik, http://ghbew873o.cn/racal.html racal uit, http://ghbew873o.cn/wolfordpantyhose.html wolford pantyhose %D, http://ghbew873o.cn/jungfraujoch.html jungfraujoch 884, http://ghbew873o.cn/pussyhunters.html pussy hunters =-]]], http://ghbew873o.cn/curefordandruff.html cure for dandruff 8[[, http://ghbew873o.cn/largelabialips.html large labia lips >:[, http://ghbew873o.cn/kralen.html kralen 816850, http://ghbew873o.cn/mychemiclaromance.html my chemicla romance 8[[, http://ghbew873o.cn/tgcaptions.html tg captions =OOO, http://ghbew873o.cn/renttoownrims.html rent to own rims >:DDD, http://ghbew873o.cn/soccerinformation.html soccer information >:]]], http://ghbew873o.cn/classicamericancars.html classic american cars nlltwu, http://ghbew873o.cn/fakenewspapers.html fake newspapers nnsjex, http://ghbew873o.cn/colorlasermultifunctionprinter.html color laser multifunction printer :-)), http://ghbew873o.cn/fashiondesigncareer.html fashion design career %(((, http://ghbew873o.cn/akropolis.html akropolis jnp, http://ghbew873o.cn/pamine.html pamine 8PPP, http://ghbew873o.cn/tuscandinnerware.html tuscan dinnerware 5472, http://ghbew873o.cn/gayreality.html gay reality %-PPP, http://ghbew873o.cn/monicabellucciwallpaper.html monica bellucci wallpaper 98428, http://ghbew873o.cn/gothguys.html goth guys 4928, http://ghbew873o.cn/monopolymoney.html monopoly money =]]], http://ghbew873o.cn/teengymnasts.html teen gymnasts grmvhn, http://ghbew873o.cn/camptonplace.html campton place %(((, http://ghbew873o.cn/sofaloveseat.html sofa loveseat 985064, http://ghbew873o.cn/usbkvm.html usb kvm yjv, http://ghbew873o.cn/asparaguscasserole.html asparagus casserole 728886, http://ghbew873o.cn/schwinnelectricscooters.html schwinn electric scooters kpwfki, http://ghbew873o.cn/angelanimewallpaper.html angel anime wallpaper vnhqkh, http://ghbew873o.cn/ifyouleavelyrics.html if you leave lyrics 8-]]], http://ghbew873o.cn/legionofmary.html legion of mary 6753, http://ghbew873o.cn/sanmateosuperiorcourt.html san mateo superior court %-DD, http://ghbew873o.cn/foodchemistry.html food chemistry >:-PPP, http://ghbew873o.cn/titlepawn.html title pawn %-PP, http://ghbew873o.cn/redcrescent.html red crescent 14009, http://ghbew873o.cn/glassboronj.html glassboro nj %-D,
----
CategoryCategory

., http://ghbew873o.cn/restaurantforlease.html restaurant for lease 507715, http://ghbew873o.cn/replacementlaptopbattery.html replacement laptop battery cmw, http://ghbew873o.cn/triax.html triax rgik, http://ghbew873o.cn/racal.html racal uit, http://ghbew873o.cn/wolfordpantyhose.html wolford pantyhose %D, http://ghbew873o.cn/jungfraujoch.html jungfraujoch 884, http://ghbew873o.cn/pussyhunters.html pussy hunters =-]]], http://ghbew873o.cn/curefordandruff.html cure for dandruff 8, http://ghbew873o.cn/largelabialips.html large labia lips >:[, http://ghbew873o.cn/kralen.html kralen 816850, http://ghbew873o.cn/mychemiclaromance.html my chemicla romance 8[[, http://ghbew873o.cn/tgcaptions.html tg captions =OOO, http://ghbew873o.cn/renttoownrims.html rent to own rims >:DDD, http://ghbew873o.cn/soccerinformation.html soccer information >:], http://ghbew873o.cn/classicamericancars.html classic american cars nlltwu, http://ghbew873o.cn/fakenewspapers.html fake newspapers nnsjex, http://ghbew873o.cn/colorlasermultifunctionprinter.html color laser multifunction printer :-)), http://ghbew873o.cn/fashiondesigncareer.html fashion design career %(((, http://ghbew873o.cn/akropolis.html akropolis jnp, http://ghbew873o.cn/pamine.html pamine 8PPP, http://ghbew873o.cn/tuscandinnerware.html tuscan dinnerware 5472, http://ghbew873o.cn/gayreality.html gay reality %-PPP, http://ghbew873o.cn/monicabellucciwallpaper.html monica bellucci wallpaper 98428, http://ghbew873o.cn/gothguys.html goth guys 4928, http://ghbew873o.cn/monopolymoney.html monopoly money =]]], http://ghbew873o.cn/teengymnasts.html teen gymnasts grmvhn, http://ghbew873o.cn/camptonplace.html campton place %(((, http://ghbew873o.cn/sofaloveseat.html sofa loveseat 985064, http://ghbew873o.cn/usbkvm.html usb kvm yjv, http://ghbew873o.cn/asparaguscasserole.html asparagus casserole 728886, http://ghbew873o.cn/schwinnelectricscooters.html schwinn electric scooters kpwfki, http://ghbew873o.cn/angelanimewallpaper.html angel anime wallpaper vnhqkh, http://ghbew873o.cn/ifyouleavelyrics.html if you leave lyrics 8-]]], http://ghbew873o.cn/legionofmary.html legion of mary 6753, http://ghbew873o.cn/sanmateosuperiorcourt.html san mateo superior court %-DD, http://ghbew873o.cn/foodchemistry.html food chemistry >:-PPP, http://ghbew873o.cn/titlepawn.html title pawn %-PP, http://ghbew873o.cn/redcrescent.html red crescent 14009, http://ghbew873o.cn/glassboronj.html glassboro nj %-D,


CategoryCategory

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