welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 40 (spanning 39 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 40 as of 2008-03-12 22:30:52
Size: 2419
Editor: 222
Comment: ., http://bauishdgbaoib.cn/rabbittoy.html rabbit toy 7434, http://bauishdgbaoib.cn/fixing.html fixing %DDD, http://bauishdgbaoib.cn/dirtyjokeswithpictures.html dirty jokes with pictures 388901, http:/
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://bauishdgbaoib.cn/rabbittoy.html rabbit toy 7434, http://bauishdgbaoib.cn/fixing.html fixing %DDD, http://bauishdgbaoib.cn/dirtyjokeswithpictures.html dirty jokes with pictures 388901, http://bauishdgbaoib.cn/outofprintpatterns.html out of print patterns kxr, http://bauishdgbaoib.cn/lockerroompics.html locker room pics 576511, http://bauishdgbaoib.cn/headtennisracquets.html head tennis racquets vcv, http://bauishdgbaoib.cn/thebooradleys.html the boo radleys >:]], http://bauishdgbaoib.cn/ussessex.html uss essex 594, http://bauishdgbaoib.cn/loadlocks.html load locks otgzf, http://bauishdgbaoib.cn/ambleside.html ambleside >:-), http://bauishdgbaoib.cn/turkeysouprecipes.html turkey soup recipes atim, http://bauishdgbaoib.cn/jayzreasonabledoubt.html jay z reasonable doubt >:-), http://bauishdgbaoib.cn/luisfonci.html luis fonci pfuyw, http://bauishdgbaoib.cn/mastcells.html mast cells 237, http://bauishdgbaoib.cn/fishinghotspots.html fishing hot spots zgmn, http://bauishdgbaoib.cn/jayp.html jay p cwuq, http://bauishdgbaoib.cn/tubesinyourears.html tubes in your ears =-((, http://bauishdgbaoib.cn/ranchopalosverdes.html rancho palos verdes >:-DDD, http://bauishdgbaoib.cn/arabicbooks.html arabic books phkjqy, http://bauishdgbaoib.cn/cherryvalleylodge.html cherry valley lodge >:-]], http://bauishdgbaoib.cn/mayorsjewelers.html mayors jewelers :-P, http://bauishdgbaoib.cn/sunwest.html sunwest >:], http://bauishdgbaoib.cn/asianwomenpictures.html asian women pictures vurj, http://bauishdgbaoib.cn/ebonymistress.html ebony mistress 80534, http://bauishdgbaoib.cn/fordcompany.html ford company 783765, http://bauishdgbaoib.cn/startek.html startek znp, http://bauishdgbaoib.cn/2006hyundai.html 2006 hyundai 3128, http://bauishdgbaoib.cn/smithchart.html smith chart nqpcro, http://bauishdgbaoib.cn/unioncivilwarflag.html union civil war flag 8138, http://bauishdgbaoib.cn/lasvegasadvice.html las vegas advice eacpgv, http://bauishdgbaoib.cn/mountainstate.html mountain state 8-DD, http://bauishdgbaoib.cn/greddyexhaust.html greddy exhaust :-]], http://bauishdgbaoib.cn/testosteronetherapy.html testosterone therapy =-]]], http://bauishdgbaoib.cn/gsxr750.html gsxr750 71038, http://bauishdgbaoib.cn/crumplerbags.html crumpler bags %-D, http://bauishdgbaoib.cn/tigerwoods2006cheats.html tiger woods 2006 cheats 8-D, http://bauishdgbaoib.cn/needlefelting.html needle felting 227658,
----
CategoryHomepage

., http://bauishdgbaoib.cn/rabbittoy.html rabbit toy 7434, http://bauishdgbaoib.cn/fixing.html fixing %DDD, http://bauishdgbaoib.cn/dirtyjokeswithpictures.html dirty jokes with pictures 388901, http://bauishdgbaoib.cn/outofprintpatterns.html out of print patterns kxr, http://bauishdgbaoib.cn/lockerroompics.html locker room pics 576511, http://bauishdgbaoib.cn/headtennisracquets.html head tennis racquets vcv, http://bauishdgbaoib.cn/thebooradleys.html the boo radleys >:]], http://bauishdgbaoib.cn/ussessex.html uss essex 594, http://bauishdgbaoib.cn/loadlocks.html load locks otgzf, http://bauishdgbaoib.cn/ambleside.html ambleside >:-), http://bauishdgbaoib.cn/turkeysouprecipes.html turkey soup recipes atim, http://bauishdgbaoib.cn/jayzreasonabledoubt.html jay z reasonable doubt >:-), http://bauishdgbaoib.cn/luisfonci.html luis fonci pfuyw, http://bauishdgbaoib.cn/mastcells.html mast cells 237, http://bauishdgbaoib.cn/fishinghotspots.html fishing hot spots zgmn, http://bauishdgbaoib.cn/jayp.html jay p cwuq, http://bauishdgbaoib.cn/tubesinyourears.html tubes in your ears =-((, http://bauishdgbaoib.cn/ranchopalosverdes.html rancho palos verdes >:-DDD, http://bauishdgbaoib.cn/arabicbooks.html arabic books phkjqy, http://bauishdgbaoib.cn/cherryvalleylodge.html cherry valley lodge >:-]], http://bauishdgbaoib.cn/mayorsjewelers.html mayors jewelers :-P, http://bauishdgbaoib.cn/sunwest.html sunwest >:], http://bauishdgbaoib.cn/asianwomenpictures.html asian women pictures vurj, http://bauishdgbaoib.cn/ebonymistress.html ebony mistress 80534, http://bauishdgbaoib.cn/fordcompany.html ford company 783765, http://bauishdgbaoib.cn/startek.html startek znp, http://bauishdgbaoib.cn/2006hyundai.html 2006 hyundai 3128, http://bauishdgbaoib.cn/smithchart.html smith chart nqpcro, http://bauishdgbaoib.cn/unioncivilwarflag.html union civil war flag 8138, http://bauishdgbaoib.cn/lasvegasadvice.html las vegas advice eacpgv, http://bauishdgbaoib.cn/mountainstate.html mountain state 8-DD, http://bauishdgbaoib.cn/greddyexhaust.html greddy exhaust :-]], http://bauishdgbaoib.cn/testosteronetherapy.html testosterone therapy =-]]], http://bauishdgbaoib.cn/gsxr750.html gsxr750 71038, http://bauishdgbaoib.cn/crumplerbags.html crumpler bags %-D, http://bauishdgbaoib.cn/tigerwoods2006cheats.html tiger woods 2006 cheats 8-D, http://bauishdgbaoib.cn/needlefelting.html needle felting 227658,


CategoryHomepage

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