Difference between revisions of "Language Reference Notation"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Cipscis
(Tried to clarify definition of *)
 
Line 22: Line 22:
|-
|-
| *
| *
| Denotes that there should be zero or more of the preceding item
| Denotes that there should be zero or more of the preceding item (i.e. the preceding item is optional; it can be omitted)
|-
|-
| ::=
| ::=

Latest revision as of 21:23, 21 March 2012

For simplicity's sake, the pages uses a very simple set of notations to help denote what is a valid Papyrus script. These notations are listed here:

Notation Meaning
'text' Denotes text that should exist exactly in the definition, like a keyword or operator.
<text> Denotes some element for which there is another reference page. For example, "<identifier>" would indicate any valid Papyrus identifier could go there.
[ ] Surrounds an optional element. It can exist, or not exist, but not more then one of them.
( ) Groups items together, just like in mathematics.
+ Means that there needs to be one or more of the preceding item
* Denotes that there should be zero or more of the preceding item (i.e. the preceding item is optional; it can be omitted)
::= Separates the name of the rule on the left with the rule's definition on the right