welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 103 (spanning 102 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 103 as of 2008-03-19 10:32:04
Size: 2296
Editor: 91
Comment: ., http://gh49700945.cn/automechanic.html automechanic :)), http://gh49700945.cn/freepeoplefinderservices.html free people finder services gyujd, http://gh49700945.cn/writingchemicalformulas.html wr
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://gh49700945.cn/automechanic.html automechanic
 :)), http://gh49700945.cn/freepeoplefinderservices.html free people finder services
 gyujd, http://gh49700945.cn/writingchemicalformulas.html writing chemical formulas
 >:))), http://gh49700945.cn/coloradospringsmovietheaters.html colorado springs movie theaters
 fuwk, http://gh49700945.cn/smudgepots.html smudge pots
 %[, http://gh49700945.cn/seattleinnovativedesign.html seattle innovative design
 pjavo, http://gh49700945.cn/freeriskdownloads.html free risk downloads
 1047, http://gh49700945.cn/baddoctors.html bad doctors
 34400, http://gh49700945.cn/beaman.html be a man
 :]], http://gh49700945.cn/2007firebird.html 2007 firebird
 >:], http://gh49700945.cn/photonet.html photonet
 =O, http://gh49700945.cn/foresthillsapartments.html forest hills apartments
 jvm, http://gh49700945.cn/calciumlevels.html calcium levels
 :((, http://gh49700945.cn/megamanxcommandmission.html mega man x command mission
 8PPP, http://gh49700945.cn/sundayschoollessonplans.html sunday school lesson plans
 ojqbkr, http://gh49700945.cn/canitakeyouhome.html can i take you home
 blc, http://gh49700945.cn/allistonontario.html alliston ontario
 xytml, http://gh49700945.cn/newyorkstatecorrectionalfacility.html new york state correctional facility
 tljy, http://gh49700945.cn/nellyworkit.html nelly work it
 96880, http://gh49700945.cn/usedtampon.html used tampon
 vbl, http://gh49700945.cn/lcoolj.html l cool j
 8), http://gh49700945.cn/journeytothecenteroftheearthwalkthrough.html journey to the center of the earth walkthrough
 uyry, http://gh49700945.cn/ericbenetlyrics.html eric benet lyrics
 577, http://gh49700945.cn/bellegarde.html bellegarde
 %(, http://gh49700945.cn/bestbusinessestostart.html best businesses to start
 86493, http://gh49700945.cn/devapremal.html deva premal
 =-), http://gh49700945.cn/bloodgood.html bloodgood
 ioncc, http://gh49700945.cn/klemperer.html klemperer
 %-))), http://gh49700945.cn/cigarettepowerboats.html cigarette powerboats
 ancvpu, http://gh49700945.cn/tellittomyheart.html tell it to my heart
 cdqooh, http://gh49700945.cn/kawaidigitalpianos.html kawai digital pianos
 83040, http://gh49700945.cn/ohiostatemarchingband.html ohio state marching band
 8DD,
----
CategoryHomepage

., http://gh49700945.cn/automechanic.html automechanic


CategoryHomepage

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