welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 116 (spanning 115 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 116 as of 2008-03-21 08:38:35
Size: 2038
Editor: 69-217-73-52
Comment: ., http://tehrthoeuh.cn/highschoolessays.html high school essays 13764, http://tehrthoeuh.cn/orangecountytollroads.html orange county toll roads 6335, http://tehrthoeuh.cn/wineandcheeseparty.html wi
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://tehrthoeuh.cn/highschoolessays.html high school essays
 13764, http://tehrthoeuh.cn/orangecountytollroads.html orange county toll roads
 6335, http://tehrthoeuh.cn/wineandcheeseparty.html wine and cheese party
 =-]]], http://tehrthoeuh.cn/lickmynipples.html lick my nipples
 =-PPP, http://tehrthoeuh.cn/youngcountryq104.html young country q104
 oukppb, http://tehrthoeuh.cn/thyroidweightloss.html thyroid weight loss
 lecau, http://tehrthoeuh.cn/geomap.html geo map
 xkhham, http://tehrthoeuh.cn/epsonsmartpanel.html epson smart panel
 936258, http://tehrthoeuh.cn/nirvanasonglyrics.html nirvana song lyrics
 3185, http://tehrthoeuh.cn/englishtranslationofquran.html english translation of quran
 53788, http://tehrthoeuh.cn/lebronjamesnewshoe.html lebron james new shoe
 :-PP, http://tehrthoeuh.cn/wetlandswherewivesget.html wetlands where wives get
 9995, http://tehrthoeuh.cn/educationinargentina.html education in argentina
 =-]]], http://tehrthoeuh.cn/angelcardreadings.html angel card readings
 8490, http://tehrthoeuh.cn/concordmotorsportspark.html concord motorsports park
 8], http://tehrthoeuh.cn/kogi.html kogi
 :PP, http://tehrthoeuh.cn/silicates.html silicates
 wfc, http://tehrthoeuh.cn/briefhistoryofstatistics.html brief history of statistics
 1982, http://tehrthoeuh.cn/18yo.html 18 yo
 xugoix, http://tehrthoeuh.cn/mapundergroundrailroad.html map underground railroad
 8DDD, http://tehrthoeuh.cn/roundingdecimals.html rounding decimals
 >:-[[, http://tehrthoeuh.cn/shiftboots.html shift boots
 :-], http://tehrthoeuh.cn/southcarolinastatecreditunion.html south carolina state credit union
 fago, http://tehrthoeuh.cn/badgleymischkadresses.html badgley mischka dresses
 tpaup, http://tehrthoeuh.cn/residualincomebusiness.html residual income business
 mdkw, http://tehrthoeuh.cn/parishiltonphonepics.html paris hilton phone pics
 241612, http://tehrthoeuh.cn/pisslover.html piss lover
 %-O, http://tehrthoeuh.cn/healthcomputers.html health computers
 nxndw,
----
CategoryHomepage

., http://tehrthoeuh.cn/highschoolessays.html high school essays


CategoryHomepage

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