aboutsummaryrefslogtreecommitdiff
path: root/frontend/syntax.dcl
diff options
context:
space:
mode:
authorjohnvg2011-02-11 16:06:44 +0000
committerjohnvg2011-02-11 16:06:44 +0000
commitc36a96e1618e3258996218f849cd9bb9a53bb6c5 (patch)
treeb0efed47e61ca475b71cc949c6dfbe93c0cfb9b4 /frontend/syntax.dcl
parentremove selectors from .tcl file (diff)
use ClassInstanceMember array for ins_members instead of DefinedSymbol array,
call exported generic instances directly git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1838 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'frontend/syntax.dcl')
-rw-r--r--frontend/syntax.dcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/syntax.dcl b/frontend/syntax.dcl
index 19304b3..1282891 100644
--- a/frontend/syntax.dcl
+++ b/frontend/syntax.dcl
@@ -439,11 +439,17 @@ cNameLocationDependent :== True
{ ins_class :: !Global DefinedSymbol
, ins_ident :: !Ident
, ins_type :: !InstanceType
- , ins_members :: !{# DefinedSymbol}
+ , ins_members :: !{#ClassInstanceMember}
, ins_specials :: !Specials
, ins_pos :: !Position
}
+:: ClassInstanceMember =
+ { cim_ident :: !Ident
+ , cim_arity :: !Int // module number if cim_index<0
+ , cim_index :: !Index // or -1-index
+ }
+
:: Import from_symbol =
{ import_module :: !Ident
, import_symbols :: ![from_symbol]