welcome: please sign in

Diff for "DomTool/LanguageReference"

Differences between revisions 1 and 98 (spanning 97 versions)
Revision 1 as of 2006-12-17 16:47:06
Size: 1640
Editor: AdamChlipala
Comment:
Revision 98 as of 2008-03-18 01:14:23
Size: 2699
Editor: 69-217-73-52
Comment: ., http://fg346f7g934fg.cn/pioneerparts.html pioneer parts 70660, http://fg346f7g934fg.cn/trendenterprises.html trend enterprises 718, http://fg346f7g934fg.cn/benjaminfranklinpicture.html benjamin f
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://fg346f7g934fg.cn/pioneerparts.html pioneer parts
 70660, http://fg346f7g934fg.cn/trendenterprises.html trend enterprises
 718, http://fg346f7g934fg.cn/benjaminfranklinpicture.html benjamin franklin picture
 >:-))), http://fg346f7g934fg.cn/advertisementbanners.html advertisement banners
 904474, http://fg346f7g934fg.cn/rheinlandpfalz.html rheinland pfalz
 =-O, http://fg346f7g934fg.cn/toyotamatrixaccessories.html toyota matrix accessories
 %(((, http://fg346f7g934fg.cn/firstnoel.html first noel
 621240, http://fg346f7g934fg.cn/superheroshirts.html superhero shirts
 wpu, http://fg346f7g934fg.cn/mussoorie.html mussoorie
 8620, http://fg346f7g934fg.cn/qvclisarobertson.html qvc lisa robertson
 sipllz, http://fg346f7g934fg.cn/johnhancockpictures.html john hancock pictures
 >:-]]], http://fg346f7g934fg.cn/militaryboys.html military boys
 >:)), http://fg346f7g934fg.cn/freeanimalcoloringpages.html free animal coloring pages
 34896, http://fg346f7g934fg.cn/mcklein.html mcklein
 428, http://fg346f7g934fg.cn/pipecleaner.html pipe cleaner
 :)), http://fg346f7g934fg.cn/medicalmalpracticeattorneypennsylvania.html medical malpractice attorney pennsylvania
 363, http://fg346f7g934fg.cn/brookelogan.html brooke logan
 auhi, http://fg346f7g934fg.cn/caraircompressor.html car air compressor
 =-P, http://fg346f7g934fg.cn/denvercommunitycollege.html denver community college
 >:-PPP, http://fg346f7g934fg.cn/surferguys.html surfer guys
 3312, http://fg346f7g934fg.cn/spacehulk.html space hulk
 =DD, http://fg346f7g934fg.cn/stregismonarchbeach.html st regis monarch beach
 ezyz, http://fg346f7g934fg.cn/termitesmulch.html termites mulch
 11174, http://fg346f7g934fg.cn/discountdesktopcomputers.html discount desktop computers
 cmb, http://fg346f7g934fg.cn/traductora.html traductora
 vpdxmt, http://fg346f7g934fg.cn/forthillsoilsands.html fort hills oil sands
 3151, http://fg346f7g934fg.cn/sunghi.html sung hi
 >:-(, http://fg346f7g934fg.cn/hospitalityeducation.html hospitality education
 ahrxw, http://fg346f7g934fg.cn/dddbreasts.html ddd breasts
 =OOO, http://fg346f7g934fg.cn/chandelle.html chandelle
 8-[, http://fg346f7g934fg.cn/littlemermaidwallpaper.html little mermaid wallpaper
 hjyanp, http://fg346f7g934fg.cn/petnamesforyourboyfriend.html pet names for your boyfriend
 fnzmx, http://fg346f7g934fg.cn/berlinairports.html berlin airports
 gfsl, http://fg346f7g934fg.cn/bestsunlesstanning.html best sunless tanning
 =-], http://fg346f7g934fg.cn/realtorsinportlandoregon.html realtors in portland oregon
 =-P, http://fg346f7g934fg.cn/aboyandhisdog.html a boy and his dog
 :OOO, http://fg346f7g934fg.cn/mrg.html mrg
 fmvi,
----
CategoryCategory

., http://fg346f7g934fg.cn/pioneerparts.html pioneer parts


CategoryCategory

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