Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Added a parse error for connect found in an element list


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11040 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 7, 2012
1 parent 68a85db commit c608e2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Parser/Modelica.g
Expand Up @@ -364,6 +364,10 @@ element returns [void* ast] @declarations {
mk_scon("replaceable ??"), Absyn__CLASSDEF(RML_TRUE, cdef.ast), INFO($start), mk_some_or_none(constr));
}
)
| conn=CONNECT
{
modelicaParserAssert(0, "Found the start of a connect equation but expected an element (are you missing the equation keyword?)", element, $start->line, $start->charPosition+1, LT(1)->line, LT(1)->charPosition);
}
;

import_clause returns [void* ast] :
Expand Down

0 comments on commit c608e2c

Please sign in to comment.