Skip to content

Commit

Permalink
Fixed bug with 1.e-15 and protected after equations.\n
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1027 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Oct 31, 2003
1 parent 9431b14 commit beeb19f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modelica_parser/src/modelica_lexer.g
Expand Up @@ -152,7 +152,7 @@ EXPONENT :


UNSIGNED_INTEGER :
(( (DIGIT)+ '.' ) => (DIGIT)+ ( '.' (DIGIT)+ )
(( (DIGIT)+ '.' ) => (DIGIT)+ ( '.' (DIGIT)* )
{
$setType(UNSIGNED_REAL);
}
Expand Down
3 changes: 2 additions & 1 deletion modelica_parser/src/modelica_parser.g
Expand Up @@ -350,7 +350,8 @@ equation_clause :
;

equation_annotation_list :
{ LA(1) == END || LA(1) == EQUATION || LA(1) == ALGORITHM || LA(1)==INITIAL}?
{ LA(1) == END || LA(1) == EQUATION || LA(1) == ALGORITHM || LA(1)==INITIAL
|| LA(1) == PROTECTED || LA(1) == PUBLIC }?
|
( equation SEMICOLON! | annotation SEMICOLON!) equation_annotation_list
;
Expand Down

0 comments on commit beeb19f

Please sign in to comment.