summaryrefslogtreecommitdiff
path: root/doc/language.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/language.txt')
-rw-r--r--doc/language.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/language.txt b/doc/language.txt
index 0a5ee5f..445d743 100644
--- a/doc/language.txt
+++ b/doc/language.txt
@@ -42,7 +42,17 @@ namespace-body:
decl-seq(opt)
class-def:
- "class" identifier "{" option-def-seq(opt) "};"
+ "class" identifier inheritance-spec(opt) abstract-spec(opt) "{" option-def-seq(opt) "};"
+
+inheritance-spec:
+ ":" base-seq
+
+base-seq:
+ qualified-name
+ base-seq "," qualified-name
+
+abstract-spec:
+ "=" "0"
option-def-seq:
option-def