Commit 4f2b47d0 authored by Sarah Spall's avatar Sarah Spall Committed by Vikram Narayanan

committing to remove old files

parent 78569fe2
......@@ -20,7 +20,26 @@ std::vector<Message*> *Interface::getMessages()
return this->function_decs;
}
void Interface::init_types()
{
// best way to do builtin types ?
this->types = new std::map<char *,char *>();
/*
bool cap char give_away_cap int int8
int16 int32 int64 intptr iref size
string uint8 uint16 uint32 uint64 uintptr
*/
// insert pairs
this->types->insert( std::pair<char *, char *>("bool", "int"));
// this for all in above....
}
void Interface::add_type_alias(char * a, char * b)
{
}
Message::Message(char * n, std::vector<Argument*> * a)
......
......@@ -42,9 +42,11 @@ class Message
class Interface
{
std::map<char *, char *> types;
char * name;
char * description;
std::vector<Message*> * function_decs;
void init_types();
public:
Interface(char * n, char * desc, std::vector<Message*> * m);
Interface(char * n, std::vector<Message*> * m);
......
#include "ast.h"
#include "flounder_parser.h"
#include "visitor.h"
#include "stub-generator.h"
#include "header-generator.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment