Skip to content

Commit

Permalink
Fixes for bug: #1306
Browse files Browse the repository at this point in the history
- use CONNECT LPAR component_reference COMMA component_reference RPAR instead of
      CONNECT LPAR connect_ref         COMMA connect_ref         RPAR



git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6333 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 11, 2010
1 parent 09fa0ed commit bd2e2f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Parser/Modelica.g
Expand Up @@ -767,6 +767,15 @@ algorithm_list returns [void* ast] :
| a=algorithm SEMICOLON as=algorithm_list {ast = mk_cons(a.ast,as);}
;

connect_clause returns [void* ast] :
CONNECT LPAR cr1=component_reference COMMA cr2=component_reference RPAR
{
ast = Absyn__EQ_5fCONNECT(cr1,cr2);
}
;

/* adrpo: 2010-10-11, replaced commented-out part with the rule above
which is conform to the grammar in the Modelica specification!
connect_clause returns [void* ast] :
CONNECT LPAR cr1=connector_ref COMMA cr2=connector_ref RPAR {ast = Absyn__EQ_5fCONNECT(cr1,cr2);}
;
Expand All @@ -784,6 +793,7 @@ connector_ref returns [void* ast] :
connector_ref_2 returns [void* ast] :
id=IDENT ( as=array_subscripts )? {ast = Absyn__CREF_5fIDENT(token_to_scon(id),or_nil(as));}
;
*/

/*
* 2.2.7 Expressions
Expand Down

0 comments on commit bd2e2f8

Please sign in to comment.