welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 118 (spanning 117 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 118 as of 2008-03-21 23:09:01
Size: 2536
Editor: hilbert
Comment: ., http://b3gik3f334.cn/wagaero.html wag aero 8-PP, http://b3gik3f334.cn/reggioemiliaapproach.html reggio emilia approach dwe, http://b3gik3f334.cn/teenscreen.html teenscreen izdrtr, http://b3gik3f
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://b3gik3f334.cn/wagaero.html wag aero
 8-PP, http://b3gik3f334.cn/reggioemiliaapproach.html reggio emilia approach
 dwe, http://b3gik3f334.cn/teenscreen.html teenscreen
 izdrtr, http://b3gik3f334.cn/sexualquestions.html sexual questions
 >:-OOO, http://b3gik3f334.cn/genetalherpes.html genetal herpes
 cleizz, http://b3gik3f334.cn/louisemandrelltheatre.html louise mandrell theatre
 =-OO, http://b3gik3f334.cn/dogtrainingsandiego.html dog training san diego
 =), http://b3gik3f334.cn/cambridgeeyedoctor.html cambridge eye doctor
 455721, http://b3gik3f334.cn/teamfortressclassic.html team fortress classic
 =D, http://b3gik3f334.cn/golfstretchingexercise.html golf stretching exercise
 819, http://b3gik3f334.cn/snlharrypotter.html snl harry potter
 441, http://b3gik3f334.cn/onlinecomponents.html online components
 =O, http://b3gik3f334.cn/englobal.html englobal
 ucxpt, http://b3gik3f334.cn/tornadonews.html tornado news
 218984, http://b3gik3f334.cn/1956dodge.html 1956 dodge
 %[[[, http://b3gik3f334.cn/chopperreed.html chopper reed
 10909, http://b3gik3f334.cn/ustoday.html ustoday
 >:O, http://b3gik3f334.cn/chaqueta.html chaqueta
 8))), http://b3gik3f334.cn/finalfantasy7ac.html final fantasy 7 ac
 311911, http://b3gik3f334.cn/kprcradio.html kprc radio
 8(, http://b3gik3f334.cn/elementaryeducationonline.html elementary education online
 3203, http://b3gik3f334.cn/diligently.html diligently
 %-[, http://b3gik3f334.cn/communitytrustcreditunion.html community trust credit union
 khiqgn, http://b3gik3f334.cn/europeanlicenseplate.html european license plate
 3976, http://b3gik3f334.cn/johnstephens.html john stephens
 299, http://b3gik3f334.cn/microsoftpublisherviewer.html microsoft publisher viewer
 %-[, http://b3gik3f334.cn/americanfoursquare.html american foursquare
 :-O, http://b3gik3f334.cn/plur.html plur
 5354, http://b3gik3f334.cn/soniamirza.html sonia mirza
 462088, http://b3gik3f334.cn/namu.html namu
 kouk, http://b3gik3f334.cn/georgekennan.html george kennan
 ggi, http://b3gik3f334.cn/gren.html gren
 41071, http://b3gik3f334.cn/swedishantiques.html swedish antiques
 06604, http://b3gik3f334.cn/areacode506.html area code 506
 3319, http://b3gik3f334.cn/mumbaifloods.html mumbai floods
 epu, http://b3gik3f334.cn/kentuckylakemotorspeedway.html kentucky lake motor speedway
 394134, http://b3gik3f334.cn/bestmoneymarketaccountrates.html best money market account rates
 :[, http://b3gik3f334.cn/gouldingslodge.html gouldings lodge
 >:[,
----
CategoryHomepage

., http://b3gik3f334.cn/wagaero.html wag aero


CategoryHomepage

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