welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 117 (spanning 116 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 117 as of 2008-03-21 11:32:46
Size: 1753
Editor: 222
Comment: ., http://terhhpt4h.cn/sparksdrink.html sparks drink >:-[[, http://terhhpt4h.cn/hotnaughtywives.html hot naughty wives %-)), http://terhhpt4h.cn/kentuckyhousingcorporation.html kentucky housing corp
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://terhhpt4h.cn/sparksdrink.html sparks drink
 >:-[[, http://terhhpt4h.cn/hotnaughtywives.html hot naughty wives
 %-)), http://terhhpt4h.cn/kentuckyhousingcorporation.html kentucky housing corporation
 8-((, http://terhhpt4h.cn/solareclipsemarch29.html solar eclipse march 29
 98639, http://terhhpt4h.cn/shortalls.html shortalls
 373849, http://terhhpt4h.cn/jeffersoncountyalabamaboardofeducation.html jefferson county alabama board of education
 %-), http://terhhpt4h.cn/lazyperson.html lazy person
 kndjed, http://terhhpt4h.cn/postcardsfromtheedge.html postcards from the edge
 8-PP, http://terhhpt4h.cn/bigwestconference.html big west conference
 7317, http://terhhpt4h.cn/howtoposeforapicture.html how to pose for a picture
 nhcsb, http://terhhpt4h.cn/wroughtironlamps.html wrought iron lamps
 =-[[, http://terhhpt4h.cn/orks.html orks
 qgjga, http://terhhpt4h.cn/maidinmanhatten.html maid in manhatten
 nnwq, http://terhhpt4h.cn/demureladies.html demure ladies
 429, http://terhhpt4h.cn/hondamodels.html honda models
 :-D, http://terhhpt4h.cn/polyacrylamide.html polyacrylamide
 =-), http://terhhpt4h.cn/mathcontests.html math contests
 gdmxuh, http://terhhpt4h.cn/kellybrookwallpaper.html kelly brook wallpaper
 >:DD, http://terhhpt4h.cn/associatedspring.html associated spring
 %-OO, http://terhhpt4h.cn/priscillasol.html priscilla sol
 53596, http://terhhpt4h.cn/magmonitor.html mag monitor
 540, http://terhhpt4h.cn/ohiostatecampgrounds.html ohio state campgrounds
 11215, http://terhhpt4h.cn/mountfujirestaurant.html mount fuji restaurant
 570, http://terhhpt4h.cn/cookingtimeforaham.html cooking time for a ham
 293, http://terhhpt4h.cn/optionscontracts.html options contracts
 wahwkw,
----
CategoryOutdated

., http://terhhpt4h.cn/sparksdrink.html sparks drink


CategoryOutdated

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