Initial implementation - everything compiles but might not work

This commit is contained in:
Artem Serebriyskiy 2013-10-28 13:18:15 +04:00
commit 1c5a0f8b9c
6 changed files with 655 additions and 177 deletions

View file

@ -3049,6 +3049,7 @@ void Language::main(int argc, char *argv[]) {
* ----------------------------------------------------------------------------- */
int Language::addSymbol(const String *s, const Node *n, const_String_or_char_ptr scope) {
//Printf( stdout, "addSymbol: %s %s\n", s, scope );
Hash *symbols = Getattr(symtabs, scope ? scope : "");
if (!symbols) {
// New scope which has not been added by the target language - lazily created.
@ -3468,6 +3469,13 @@ String *Language::getNSpace() const {
return NSpace;
}
/* -----------------------------------------------------------------------------
* Language::setNSpace()
* ----------------------------------------------------------------------------- */
void Language::setNSpace(String *nspace) {
NSpace = nspace;
}
/* -----------------------------------------------------------------------------
* Language::getClassName()
* ----------------------------------------------------------------------------- */

File diff suppressed because it is too large Load diff

View file

@ -278,6 +278,7 @@ protected:
/* Return the namespace for the class/enum - the nspace feature */
String *getNSpace() const;
void setNSpace(String *nspace);
/* Return the real name of the current class */
String *getClassName() const;