Adam Grammar Changes

From Adobe Open Source Wiki
Jump to: navigation, search

Allow the when clause to contain multiple relations

Instead of:

   when (p) relate { ... }
   when (p) relate { ... }
   when (!p) relate { ... }
   when (!p) relate { ... }

we have:

   when (p)
   {
      relate { ... }
      relate { ... }
   }

   when (!p)
   {
      relate { ... }
      relate { ... }
   }

or even:

   when (p)
   {
      relate { ... }
      relate { ... }
   }
   otherwise // 'else' seems too if-like; some word for "when not"
   {
      relate { ... }
      relate { ... }
   }

Shorthand for direct relationships between two cells

Instead of:

   relate {
      y <== x;
      x <== y;
   }

we have:

   relate {
      x <=> y;
   }

or even:

   relate x <=> y;