Commit 1069f66d authored by zygzagZ's avatar zygzagZ

Fix Makefile + indent

parent 13d56913
...@@ -12,7 +12,7 @@ clean : ...@@ -12,7 +12,7 @@ clean :
latc : ${OBJS} Latte.o latc : ${OBJS} Latte.o
@echo "Linking latc..." @echo "Linking latc..."
${CC} ${CCFLAGS} ${OBJS} Latte.o -o latc ${CC} ${CCFLAGS} ${OBJS} Latte.o -lstdc++fs -o latc
Absyn.o : src/Absyn.cpp src/Absyn.h Absyn.o : src/Absyn.cpp src/Absyn.h
${CC} ${CCFLAGS} -c src/Absyn.cpp ${CC} ${CCFLAGS} -c src/Absyn.cpp
......
...@@ -109,7 +109,7 @@ void TypeCheck::visitClassFld(ClassFld *decl) ...@@ -109,7 +109,7 @@ void TypeCheck::visitClassFld(ClassFld *decl)
throw ParseError("Initialization in class variable definition", decl); throw ParseError("Initialization in class variable definition", decl);
} }
VarInfoPtr var = make_shared<VarInfo>(el->pident_, type); VarInfoPtr var = make_shared<VarInfo>(el->pident_, type);
el->pident_->var = var; el->pident_->var = var;
scope->currentClass->variables << var; scope->currentClass->variables << var;
} }
......
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