-
Notifications
You must be signed in to change notification settings - Fork 3
/
asmimplparse.cpp
59 lines (47 loc) · 1.12 KB
/
asmimplparse.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// asmimplparse.cpp
// Revision 26-aug-2005
#include "asmimpl.h"
#include "parsertypes.h"
#include "trace.h"
#include <memory>
namespace pasmo {
namespace impl {
using std::endl;
using std::auto_ptr;
using std::exception;
#if 0
void AsmImpl::parseinstruction (Tokenizer & tz)
{
TRFUNC (tr, "AsmImpl::parseinstruction");
ParseType type= bracketonlymode ? BracketOnly : PassedFirst;
bool inp2= pass > 1;
auto_ptr <Machine> pmachine (newMachine (* this, tz, type, inp2) );
try
{
TRMESSAGE (tr, "Parse");
if (yyparse (* pmachine) != 0)
throw runtime_error ("Syntax error");
TRMESSAGE (tr, "Exec");
pmachine->exec ();
}
catch (nonfatal_error & e)
{
TRMESSAGE (tr, "catch nonfatal");
showcurrentlineinfo (* perr);
* perr << ' ' << e.what () << endl;
* pverb << ">>" << tz << "<<" << endl;
if (++counterr == numerr)
throw error_already_reported ();
}
catch (exception & e)
{
showcurrentlineinfo (* perr);
* perr << ' ' << e.what () << endl;
* pverb << ">>" << tz << "<<" << endl;
throw error_already_reported ();
}
}
#endif
} // namespace impl
} // namespace pasmo
// End of asmimplparse.cpp