Changes between Version 3 and Version 4 of BnFnotation


Ignore:
Timestamp:
Jul 12, 2011 1:21:52 PM (13 years ago)
Author:
sunshine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BnFnotation

    v3 v4  
    11= BNF Notation for HEML =
    22
    3 <metadescription> ::= <declaration> <dimensions>
    4 <dimensions> ::= <dimension> {<dimensions>}
    5 <dimension> ::= <logtopo> | <evtimeline>
    6 <logtopo> ::=
     3metadescription> ::= declaration dimensions
    74
     5declaration ::= '''define''' identifier ":"
    86
     7dimensions ::= dimension {dimensions}
     8
     9dimension ::= logtopo | evtimeline
     10
     11logtopo ::= '''topology''' objects cardinality relationships
     12
     13evtimeline ::= '''timeline''' definitions timeline invariants
     14
     15objects ::= object {object}
     16
     17object ::= alias | dobject
     18
     19alias ::= obname "." obfield
     20
     21dobject ::= obtype [obname] ":=" "{" obass "}"
     22
     23obass ::= obass ["," obass]
     24
     25obass ::= obvar | obstate
     26
     27obvar ::= obtype obname ["=" value]
     28
     29obstate ::= state "=" value
     30
     31obname ::= identifier
     32
     33obtype from list of object types
     34
     35value ::= number | string
    936
    1037identifier ::=  letter { letter | digit }
     38
     39letter
     40diggit
     41number
     42string