Skip to content

Commit

Permalink
fixed parse error message
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1593 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Mar 21, 2005
1 parent dce4b06 commit 85c1ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modeq/absyn_builder/parse.cpp
Expand Up @@ -192,7 +192,7 @@ extern "C"
if (flat_parse) delete parse;
if (lex) delete lex;
ast = mk_nil();
RML_TAILCALLK(rmlFC);
RML_TAILCALLK(rmlSC); // rmlFC
}

if (debug)
Expand All @@ -219,7 +219,7 @@ extern "C"
ast = mk_nil();
std::cerr << "Error building AST" << std::endl;
}
RML_TAILCALLK(rmlFC);
RML_TAILCALLK(rmlSC); // rmlFC
}
RML_END_LABEL

Expand Down
4 changes: 2 additions & 2 deletions modeq/main.rml
Expand Up @@ -280,7 +280,7 @@ relation handle_command: (string,Interactive.InteractiveSymbolTable) =>
Debug.fprint ("dump", "\n--------------- Parsed program ---------------\n") &
Debug.fcall ("dumpgraphviz", DumpGraphviz.dump, newprog) &
Debug.fcall ("dump", Dump.dump, newprog) &
make_debug_result("dump", "Ok\n") => res' &
make_debug_result("dump", msg) => res' &
make_debug_result("dumpgraphviz", res') => res
----------------------------------------------
handle_command (str, Interactive.SYMBOLTABLE(iprog,a,b,vars,cf)) =>
Expand All @@ -307,7 +307,7 @@ relation handle_command: (string,Interactive.InteractiveSymbolTable) =>
Debug.fprint ("failtrace", "\nBoth parser and expression parser failed: \n") &
Debug.fprintl ("failtrace", ["parser: \n", msg, "\n"]) &
Debug.fprintl ("failtrace", ["expparser: \n", expmsg, "\n"]) &
make_debug_result("failtrace", "Syntax error\n") => res
make_debug_result("failtrace", msg) => res
-----------------------------------------------------
handle_command (str,isymb) => (true, res, isymb)

Expand Down

0 comments on commit 85c1ea9

Please sign in to comment.