Skip to content

Commit

Permalink
- added break and return statements to flat_modelica_lexer.g and flat…
Browse files Browse the repository at this point in the history
…_modelica_parser.g

  due to changes to modelica_lexer.g and modelica_parser.g
- without this the FlatParse.mof test fails.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2683 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 5, 2007
1 parent c7c5a54 commit 3dec014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flat_modelica_parser/src/flat_modelica_lexer.g
Expand Up @@ -115,6 +115,8 @@ tokens {
WHEN = "when" ;
WHILE = "while" ;
WITHIN = "within" ;
RETURN = "return" ;
BREAK = "break" ;
/* MetaModelica keywords. I guess not all are needed here. */
AS = "as" ;
CASE = "case" ;
Expand Down
2 changes: 2 additions & 0 deletions flat_modelica_parser/src/flat_modelica_parser.g
Expand Up @@ -622,6 +622,8 @@ algorithm :
| for_clause_a
| while_clause
| when_clause_a
| BREAK
| RETURN
| FAILURE^ LPAR! algorithm RPAR!
| EQUALITY^ LPAR! algorithm RPAR!
)
Expand Down

0 comments on commit 3dec014

Please sign in to comment.