syntax
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| syntax [2011/09/26 09:53] – created Patrick Michel | syntax [2012/07/25 12:14] (current) – Patrick Michel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== XCend File Syntax ====== | ====== XCend File Syntax ====== | ||
| + | |||
| + | <fs 150%>The page is incomplete and outdated</ | ||
| A XCend file consists mainly of a '' | A XCend file consists mainly of a '' | ||
| Line 9: | Line 11: | ||
| </ | </ | ||
| - | In general a pattern is a sequence of '' | + | In general, a pattern is a sequence of '' |
| <code xcend> | <code xcend> | ||
| - | element < | + | element < |
| < | < | ||
| } | } | ||
| Line 23: | Line 25: | ||
| </ | </ | ||
| - | Elements can be optional, repeated | + | Elements can be //optional// or //repeated//, attributes |
| + | You can also specify choices between elements and attributes, which means that only one has to exist. | ||
| + | <code xcend> | ||
| + | element choice { | ||
| + | element a {} | element b {} | attribute c {} | ||
| + | } | ||
| + | </ | ||
| A body can either be empty, pattern, type or enumeration declaration: | A body can either be empty, pattern, type or enumeration declaration: | ||
| <code xcend> | <code xcend> | ||
| - | element | + | element |
| } | } | ||
syntax.1317023606.txt.gz · Last modified: by Patrick Michel
