1 // Copyright: Matra-Datavision 1992
3 // Created: Mon Aug 17 18:40:44 1992
4 // Author: Arnaud BOUZY
7 #include <ExprIntrp.ixx>
8 #include <ExprIntrp_yaccintrf.hxx>
9 #include <ExprIntrp_yaccanal.hxx>
10 #include <Standard_ErrorHandler.hxx>
11 #include <ExprIntrp_SyntaxError.hxx>
13 TCollection_AsciiString ExprIntrp_thestring;
14 Standard_Integer ExprIntrp_thecurchar=0;
16 Standard_Boolean ExprIntrp::Parse(const Handle(ExprIntrp_Generator)& gen, const TCollection_AsciiString& str)
18 ExprIntrp_Recept.SetMaster(gen);
19 ExprIntrp_thecurchar = 0;
20 if (str.Length() == 0) return Standard_False;
21 ExprIntrp_thestring = str;
22 ExprIntrp_start_string(ExprIntrp_thestring.ToCString());
30 kerror = ExprIntrpparse();
32 ExprIntrp_stop_string();
35 catch (Standard_Failure) {}
37 ExprIntrp_stop_string();
38 return Standard_False;