Debian Codegraph @

terps/tads/tads3/tcprs_d.cpp

raw symbols SCIP
1 // NOTE - this file is obsolete as of TADS 3.1.2
2 #error This file is obsolete - it should be removed from the makefile. \
3 The only dependency should have been test/test_tok.cpp, which now \
4 has the encessary dummy functions defined internally.
5
6 #ifdef RCSID
7 static char RCSid[] =
8 "$Header$";
9 #endif
10
11 /*
12 * Copyright (c) 2000, 2002 Michael J. Roberts. All Rights Reserved.
13 *
14 * Please see the accompanying license file, LICENSE.TXT, for information
15 * on using and copying this software.
16 */
17 /*
18 Name
19 [OBSOLETE] tcprs_d.cpp - stubs for parser functions not needed in debugger
20 Function
21
22 Notes
23
24 Modified
25 02/02/00 MJRoberts - Creation
26 */
27
28 #include "tctarg.h"
29 #include "tcprs.h"
30 #include "vmerr.h"
31 #include "vmerrnum.h"
32 #include "tctok.h"
33
34
35 /*
36 * Debug records aren't needed when we're compiling code in the debugger
37 * itself - debugger-generated code can't itself be debugged
38 */
39 void CTPNStmBase::add_debug_line_rec()
40 {
41 }
42 void CTPNStmBase::add_debug_line_rec(CTcTokFileDesc *, long)
43 {
44 }
45
46 /*
47 * Anonymous functions are illegal in the debugger
48 */
49 CTcPrsNode *CTcPrsOpUnary::parse_anon_func(
50 int /*short_form*/, int /*is_method*/)
51 {
52 /*
53 * we can't parse these - generate an error, consume the token, and
54 * return failure
55 */
56 G_tok->log_error(TCERR_DBG_NO_ANON_FUNC);
57 G_tok->next();
58 return 0;
59 }
60
61 /*
62 * local contexts aren't needed in the debugger, because anonymous
63 * functions aren't allowed
64 */
65 void CTcParser::init_local_ctx()
66 {
67 }
68
69 int CTcParser::alloc_ctx_arr_idx()
70 {
71 return 0;
72 }
73
74 void CTPNStmObjectBase::add_implicit_constructor()
75 {
76 }
77
78 /*
79 * Add an entry to the global symbol table. We can't define new global
80 * symbols in an interactive debug session, so this does nothing.
81 */
82 void CTcPrsSymtab::add_to_global_symtab(CTcPrsSymtab *, CTcSymbol *)
83 {
84 }
85
86 /*
87 * Set the sourceTextGroup mode. This doesn't apply in the debugger, since
88 * #pragma isn't allowed.
89 */
90 void CTcParser::set_source_text_group_mode(int)
91 {
92 }
93
94 CTcPrsNode *CTPNStmLabelBase::fold_constants(CTcPrsSymtab *)
95 {
96 return 0;
97 }
98 unsigned long CTPNStmLabelBase::get_control_flow(int) const
99 {
100 return 0;
101 }
102