| 1 | #ifdef RCSID |
| 2 | static char RCSid[] = |
| 3 | "$Header$"; |
| 4 | #endif |
| 5 | |
| 6 | /* |
| 7 | * Copyright (c) 2000, 2002 Michael J. Roberts. All Rights Reserved. |
| 8 | * |
| 9 | * Please see the accompanying license file, LICENSE.TXT, for information |
| 10 | * on using and copying this software. |
| 11 | */ |
| 12 | /* |
| 13 | Name |
| 14 | tcprs_rt.cpp - stubs for parser functions not needed in run-time |
| 15 | Function |
| 16 | Interpreters that include "eval()" functionality require a portion of the |
| 17 | compiler, including code body and expression compilation. This module |
| 18 | provides stubs for functions that aren't needed for interpreter |
| 19 | configurations, but which are referenced from the parts of the compiler we |
| 20 | do need, to resolve symbols at link time. Many of these stubs are simply |
| 21 | never called in interpreter builds, because the conditions that would |
| 22 | trigger their invocation can't occur; others just need to provide defaults |
| 23 | or other simplified functionality when called; others generate errors, |
| 24 | because the functionality they provide is specifically not supported in |
| 25 | interpreter builds. |
| 26 | Notes |
| 27 | |
| 28 | Modified |
| 29 | 02/02/00 MJRoberts - Creation |
| 30 | */ |
| 31 | |
| 32 | #include "tctarg.h" |
| 33 | #include "tcprs.h" |
| 34 | #include "vmerr.h" |
| 35 | #include "vmerrnum.h" |
| 36 | #include "tctok.h" |
| 37 | |
| 38 | |
| 39 | /* ------------------------------------------------------------------------ */ |
| 40 | /* |
| 41 | * Simple stubs for functions not used in the dynamic compiler |
| 42 | */ |
| 43 | |
| 44 | /* |
| 45 | * Debug records aren't needed when we're compiling code in the debugger |
| 46 | * itself - debugger-generated code can't itself be debugged |
| 47 | */ |
| 48 | void CTPNStmBase::add_debug_line_rec() |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | void CTPNStmBase::add_debug_line_rec(CTcTokFileDesc *, long) |
| 53 | { |
| 54 | } |
| 55 | |
| 56 | /* |
| 57 | * Add an entry to the global symbol table. We can't define new global |
| 58 | * symbols in an interactive debug session, so this does nothing. |
| 59 | */ |
| 60 | void CTcPrsSymtab::add_to_global_symtab(CTcPrsSymtab *, CTcSymbol *) |
| 61 | { |
| 62 | } |
| 63 | |
| 64 | int CTPNStmObjectBase::parse_nested_obj_prop( |
| 65 | CTPNObjProp* &, int *, tcprs_term_info *, const CTcToken *, int) |
| 66 | { |
| 67 | return FALSE; |
| 68 | } |
| 69 | |
| 70 | |
| 71 | /* |
| 72 | * Set the sourceTextGroup mode. This doesn't apply in the debugger, since |
| 73 | * #pragma isn't allowed. |
| 74 | */ |
| 75 | void CTcParser::set_source_text_group_mode(int) |
| 76 | { |
| 77 | } |
| 78 | |
| 79 | /* |
| 80 | * we don't need static object generation, since we use G_vmifc interface |
| 81 | * to generate live objects in the VM |
| 82 | */ |
| 83 | CTcSymObj *CTcParser::add_gen_obj_stat(CTcSymObj *) |
| 84 | { |
| 85 | return 0; |
| 86 | } |
| 87 | |
| 88 | void CTcParser::add_gen_obj_prop_stat( |
| 89 | CTcSymObj *, CTcSymProp *, const CTcConstVal *) |
| 90 | { |
| 91 | } |
| 92 |