welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 97 (spanning 96 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 97 as of 2008-03-17 22:30:44
Size: 1574
Editor: 61
Comment: ., http://fg3469t.cn/warsawmo.html warsaw mo uta, http://fg3469t.cn/earbleeding.html ear bleeding =-]]], http://fg3469t.cn/wowdruid.html wow druid =[[[, http://fg3469t.cn/tularerealestate.html tula
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://fg3469t.cn/warsawmo.html warsaw mo
 uta, http://fg3469t.cn/earbleeding.html ear bleeding
 =-]]], http://fg3469t.cn/wowdruid.html wow druid
 =[[[, http://fg3469t.cn/tularerealestate.html tulare real estate
 076, http://fg3469t.cn/goldalloys.html gold alloys
 >:-]], http://fg3469t.cn/brownstown.html brownstown
 545792, http://fg3469t.cn/rebeld.html rebeld
 764824, http://fg3469t.cn/evanescencetakingoverme.html evanescence taking over me
 drliou, http://fg3469t.cn/glasstopdesk.html glass top desk
 hdp, http://fg3469t.cn/socotra.html socotra
 jwxtjx, http://fg3469t.cn/feverindogs.html fever in dogs
 958051, http://fg3469t.cn/caslatency.html cas latency
 jid, http://fg3469t.cn/newmexicopopulation.html new mexico population
 csfkm, http://fg3469t.cn/socalspeedshop.html socal speed shop
 8-PPP, http://fg3469t.cn/investortoolbox.html investor tool box
 ool, http://fg3469t.cn/israelifood.html israeli food
 6315, http://fg3469t.cn/bridgewaternewjersey.html bridgewater new jersey
 =-[[, http://fg3469t.cn/chronographs.html chronographs
 uxj, http://fg3469t.cn/angelfireresort.html angel fire resort
 25197, http://fg3469t.cn/nudeportman.html nude portman
 oqkeyf, http://fg3469t.cn/dryfruit.html dry fruit
 uoctt, http://fg3469t.cn/sagemmobilephones.html sagem mobile phones
 =[[[, http://fg3469t.cn/greggrolie.html gregg rolie
 %[, http://fg3469t.cn/worldspace.html worldspace
 %-[[, http://fg3469t.cn/clivebackpacks.html clive backpacks
 okr, http://fg3469t.cn/famousgaypeople.html famous gay people
 6650,
----
CategoryHomepage

., http://fg3469t.cn/warsawmo.html warsaw mo


CategoryHomepage

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