Use Type in VariableDefinition

This commit is contained in:
Markus Hauschild
2013-06-01 00:43:30 +02:00
parent e2ab5af964
commit a6f0c9ec81
4 changed files with 11 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#include "AST/VariableDefinition.h"
#include "AST/ASTVisitor.h"
VariableDefinition::VariableDefinition(int type, std::string name) : type_(type), name_(name) {
VariableDefinition::VariableDefinition(Type* type, std::string name) : type_(type), name_(name) {
//
}
@@ -13,7 +13,7 @@ void VariableDefinition::accept(ASTVisitor* visitor) {
visitor->visit(this);
}
int VariableDefinition::getType() {
Type* VariableDefinition::getType() {
return type_;
}

View File

@@ -59,7 +59,7 @@ int main() {
lexertl::generator::build(rules, state_machine);
state_machine.minimise();
std::cout << "The scully programming languae v0.1" << std::endl;
std::cout << "The scully programming language v0.1" << std::endl;
void* parser = scullyParserAlloc(malloc);