From 338a61bd10d97fe6cec53a886c6ead75905ef495 Mon Sep 17 00:00:00 2001 From: Mathias Garbe Date: Wed, 16 Jan 2013 11:06:27 +0100 Subject: [PATCH] More cleanups --- src/Lexer.hpp | 5 +---- src/List.hpp | 5 +---- src/ParseTree.hpp | 7 +------ 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/Lexer.hpp b/src/Lexer.hpp index e9d64f9..bc62548 100644 --- a/src/Lexer.hpp +++ b/src/Lexer.hpp @@ -1,5 +1,4 @@ -#ifndef LEXER_HPP -#define LEXER_HPP +#pragma once #include #include "Token.hpp" @@ -75,5 +74,3 @@ class Lexer Token nextToken(); }; - -#endif diff --git a/src/List.hpp b/src/List.hpp index c55312c..a6c2e8c 100644 --- a/src/List.hpp +++ b/src/List.hpp @@ -1,5 +1,4 @@ -#ifndef LIST_HPP -#define LIST_HPP +#pragma once #include @@ -77,5 +76,3 @@ class List { this->size -= 1; } }; - -#endif diff --git a/src/ParseTree.hpp b/src/ParseTree.hpp index a98da62..70a8558 100644 --- a/src/ParseTree.hpp +++ b/src/ParseTree.hpp @@ -1,13 +1,10 @@ -#ifndef PARSETREE_HPP -#define PARSETREE_HPP +#pragma once #include "ParserRule.hpp" #include "Token.hpp" -#include "Lexer.hpp" #include "String.hpp" #include "Vector.hpp" - class ParseTree { protected: @@ -396,5 +393,3 @@ class Prog : public ParseTree String typeCheck(); String makeCode(); }; - -#endif