Scope provider stops working with UPPER_CASE_ID terminal rule [message #1016159] |
Tue, 05 March 2013 05:01  |
Eclipse User |
|
|
|
Hi,
I have two DSL's below. In the Entity DSL, if I change the Attribute rule to [0], the scope provider in the Function DSL stops returning me the list of Entity attributes. Is there a way I could fix this ? I am going through the implementation of the Scopes class, but so far I haven't found a solution. Any thoughts ?
[0]
Attribute:
name=UPPER_CASE_ID ':' type=DataType
-------------------Function DSL------------------------------------------------------
....
....
Function:
'func' name=ID '('parameters+=Parameter (',' parameters+=Parameter)* ')' '{'
body += Body (';' body += Body)*
'}'
;
Body:
object=[Parameter] tail=AttributeReference?
;
Parameter:
name=ID ':' type=[entity::Entity]
;
AttributeReference:
'.' attribute=[entity::Attribute]
;
---------------------------Entity DSL------------------------------------------------
....
....
Attribute:
name=ID ':' type=DataType
terminal UPPER_CASE_ID : '^'?('A'..'Z'|'_') ('A'..'Z'|'_'|'0'..'9')*;
-------------------------------------------------------------------------------------
Thanks in advance,
[Updated on: Tue, 05 March 2013 05:03] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06770 seconds