diff options
Diffstat (limited to 'language-web/src/main/webapp/index.html')
-rw-r--r-- | language-web/src/main/webapp/index.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/language-web/src/main/webapp/index.html b/language-web/src/main/webapp/index.html index 97c4dbab..3e068f68 100644 --- a/language-web/src/main/webapp/index.html +++ b/language-web/src/main/webapp/index.html | |||
@@ -22,8 +22,9 @@ | |||
22 | 22 | ||
23 | class Person { | 23 | class Person { |
24 | Person[] children opposite parent | 24 | Person[] children opposite parent |
25 | Person parent opposite children | 25 | Person[0..1] parent opposite children |
26 | TaxStatus[1] taxStatus | 26 | int age |
27 | TaxStatus taxStatus | ||
27 | } | 28 | } |
28 | 29 | ||
29 | enum TaxStatus { | 30 | enum TaxStatus { |
@@ -41,6 +42,10 @@ members('family', ciri). | |||
41 | children(anne, ciri). | 42 | children(anne, ciri). |
42 | ?children(bob, ciri). | 43 | ?children(bob, ciri). |
43 | taxStatus(anne, adult). | 44 | taxStatus(anne, adult). |
45 | age(anne, 35). | ||
46 | bobAge: 27. | ||
47 | age(bob, bobAge). | ||
48 | !age(ciri, bobAge). | ||
44 | 49 | ||
45 | scope Family = 1, Person += 5..10. | 50 | scope Family = 1, Person += 5..10. |
46 | </pre></div> | 51 | </pre></div> |