Changeset 444
- Timestamp:
- Jun 22, 2010 7:45:16 PM (14 years ago)
- Location:
- MetaXa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MetaXa/src/Magnolia.mxa
r398 r444 46 46 N --lookup-isVar-isUnique-> sym(N',T') 47 47 -------------------------------------- 48 (: N:? :) ==> (; N ':T ;)48 (: N:? :) ==> (; N:T ;) /* TODO: N' */ 49 49 50 50 construct procedure Decl: -
MetaXa/src/MagnoliaSpec.mxa
r443 r444 12 12 syntax 13 13 14 14 decl(: concept Name Attrs = ConceptExpr :) 15 15 16 16 patterns … … 25 25 ------------------------------------------------------------ 26 26 decl(Sort, Name, Attrs, X) ==> decl(Sort, Name, Attrs', X'), 27 defines<Sort, qualify(Name), X' ), attrs<Sort, qualify(Name), Attrs'>27 defines<Sort, qualify(Name), X'>, attrs<Sort, qualify(Name), Attrs'> 28 28 29 29 construct literal ConceptExpr: … … 31 31 syntax 32 32 33 (: { Decl* } :)33 conceptexpr(: { Decl* } :) 34 34 35 35 rules 36 36 37 Decl* ==> *Decl'*37 Decl* ==> Decl'* 38 38 --------------------------------------------------------- 39 ConceptExpr(: { Decl* } :) -> ConceptExpr(; { Decl'* } ;)39 conceptexpr(: { Decl* } :) ==> conceptexpr(; { Decl'* } ;) 40 40 41 41 construct named ConceptExpr: … … 43 43 syntax 44 44 45 (: Name :)45 conceptexpr(: Name :) 46 46 47 47 rules … … 49 49 Name --lookupDef("concept")-isUnique-> Name' 50 50 ------------------------------------------- 51 (: Name :) ==>(; Name' ;)51 conceptexpr(: Name :) ==> conceptexpr(; Name' ;) 52 52 53 /* 53 54 construct morphed ConceptExpr: 54 55 55 56 syntax 56 57 57 (: ConceptExpr Morphism :)58 conceptexpr(: ConceptExpr Morphism :) 58 59 59 60 rules … … 69 70 syntax 70 71 71 (: 72 (: 73 74 */
Note:
See TracChangeset
for help on using the changeset viewer.