Skip to content

Commit

Permalink
Why connect() should be a special construct.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@180 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Mar 9, 1998
1 parent 8f1a639 commit 5a801cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modeq/report/syntax
Expand Up @@ -83,3 +83,19 @@ I think that the latter is preferrable

I B.6 st�r det "final type Real ...", vilket inte g�r enligt
grammatiken.

* connect

Connect statements in the equation part of a class definition can not
be treated as a function call as the grammar implies. Therefore it
would be more reasonable to make connect() a special construct which
takes two component_references.

equation :
( "connect" "(" component_reference "," component_reference ")"
| simple_expression [ ( "=" | ":=" ) expression ]
| conditional_equation
| for_clause
| while_clause )
comment

0 comments on commit 5a801cd

Please sign in to comment.