Skip to content

Commit

Permalink
improvements to function handling
Browse files Browse the repository at this point in the history
- handle some of the builtin functions
- handle named arguments
- check argument type, variability, etc
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Dec 7, 2016
1 parent c7e8c02 commit f516283
Show file tree
Hide file tree
Showing 6 changed files with 1,087 additions and 92 deletions.
1 change: 1 addition & 0 deletions Compiler/NFFrontEnd/NFBinding.mo
Expand Up @@ -68,6 +68,7 @@ uniontype Binding
record TYPED_BINDING
DAE.Exp bindingExp;
DAE.Type bindingType;
DAE.Const variability;
Integer propagatedDims;
SourceInfo info;
end TYPED_BINDING;
Expand Down
10 changes: 10 additions & 0 deletions Compiler/NFFrontEnd/NFComponent.mo
Expand Up @@ -240,6 +240,16 @@ uniontype Component
end match;
end getAttributes;

function getBinding
input Component component;
output NFBinding.Binding b;
algorithm
b := match component
case UNTYPED_COMPONENT() then component.binding;
case TYPED_COMPONENT() then component.binding;
end match;
end getBinding;

function attr2DaeAttr
input Attributes attr;
output DAE.Attributes daeAttr;
Expand Down

0 comments on commit f516283

Please sign in to comment.