User Tools

Site Tools


syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
syntax [2011/09/26 11:48]
Patrick Michel
syntax [2011/10/02 00:26]
Patrick Michel
Line 9: Line 9:
 </​code>​ </​code>​
  
-In general a pattern is a sequence of ''​element''​ and ''​attribute''​ declarations:​+In generala pattern is a sequence of ''​element''​ and ''​attribute''​ declarations:​
  
 <code xcend> <code xcend>
-element <​name>​ (?|*|+)? {+element <​name>​ (?|* (<​name>​)?​)? {
   <​body>​   <​body>​
 } }
Line 23: Line 23:
 </​code>​ </​code>​
  
-Elements can be //​optional//​ or //​repeated// ​(minimum zero or one), attributes can only be optional.+Elements can be //​optional//​ or //​repeated//,​ attributes can only be optional. For repeated elements, the implicit disambiguation identifier can be renamed and accessed like a normal attribute.
 You can also specify choices between elements and attributes, which means that only one has to exist. You can also specify choices between elements and attributes, which means that only one has to exist.
  
syntax.txt ยท Last modified: 2012/07/25 12:14 by Patrick Michel