Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@269 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Apr 9, 1998
1 parent 7a75369 commit 4370935
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions modeq/report/syntax
Expand Up @@ -15,19 +15,19 @@ and not
This is currently allowed by the grammar, but seems to me to be
obviously wrong.

class Foo
Int x;
end;
class Foo
Int x;
end;

class Bar
Foo y[10];
end;
class Bar
Foo y[10];
end;

class Weird
Bar z(y[5](redeclare Real x));
end;
class Weird
Bar z(y[5](redeclare Real x));
end;

Solution: Change the production rule for element_modification
BAD Solution: Change the production rule for element_modification

Previously:

Expand All @@ -39,6 +39,16 @@ New:
element_modification :
[ final ] name modification

Trouble: This disallows the following (correct) example:

class Foo
Real x[100];
end Foo;

class Bar
Foo y(x[17] = 123.0);
end Bar;


* Double modifiers

Expand Down

0 comments on commit 4370935

Please sign in to comment.