Skip to content

Commit

Permalink
- cases can have empty patterns
Browse files Browse the repository at this point in the history
- fixes DAELow.mo so empty pattern () was replaced by _ 

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2588 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Nov 2, 2006
1 parent eb09eb8 commit 5033135
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Compiler/DAELow.mo
Expand Up @@ -425,7 +425,7 @@ protected function dumpDAELowEqnList2
input list<Equation> inDAELowEqnList;
input Boolean printExpTree;
algorithm
():=
_ :=
matchcontinue (inDAELowEqnList,printExpTree)
local
Exp.Exp e1_1,e2_1,e1,e2,e_1,e;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/absyn_builder/walker.g
Expand Up @@ -1809,7 +1809,7 @@ cases returns [void* ast]
;
pattern returns [void* ast]:
ast = expression
ast = expression_or_empty
;
Expand Down
2 changes: 1 addition & 1 deletion flat_modelica_parser/src/flat_modelica_parser.g
Expand Up @@ -780,7 +780,7 @@ onecase:
;

pattern:
expression
expression_or_empty
;

if_expression :
Expand Down
2 changes: 1 addition & 1 deletion modelica_parser/src/modelica_parser.g
Expand Up @@ -772,7 +772,7 @@ onecase:
;

pattern:
expression
expression_or_empty
;

if_expression :
Expand Down

0 comments on commit 5033135

Please sign in to comment.