src/Parser.h

changeset 101
9ffae10ef76f
parent 98
ea02b78a737a
child 105
6dbac3305614
--- a/src/Parser.h	Sun Feb 09 14:34:13 2014 +0200
+++ b/src/Parser.h	Sun Feb 09 14:56:58 2014 +0200
@@ -116,15 +116,6 @@
 
 // ============================================================================
 //
-struct ConstantInfo
-{
-	String name;
-	EType type;
-	String val;
-};
-
-// ============================================================================
-//
 class BotscriptParser
 {
 	PROPERTY (public, bool, ReadOnly, BOOL_OPS, STOCK_WRITE)
@@ -138,7 +129,6 @@
 
 		BotscriptParser();
 		~BotscriptParser();
-		ConstantInfo*			FindConstant (const String& tok);
 		void					ParseBotscript (String fileName);
 		DataBuffer*				ParseCommand (CommandInfo* comm);
 		DataBuffer*				ParseAssignment (ScriptVariable* var);
@@ -192,7 +182,6 @@
 		DataBuffer*				mIfExpression;
 		bool					mCanElse;
 		List<UndefinedLabel>	mUndefinedLabels;
-		List<ConstantInfo>		mConstants;
 
 		// How many bytes have we written to file?
 		int						mNumWrittenBytes;
@@ -205,7 +194,7 @@
 		void			ParseEventBlock();
 		void			ParseMainloop();
 		void			ParseOnEnterExit();
-		void			ParseVariableDeclaration();
+		void			ParseVar();
 		void			ParseGoto();
 		void			ParseIf();
 		void			ParseElse();
@@ -218,7 +207,6 @@
 		void			ParseBreak();
 		void			ParseContinue();
 		void			ParseBlockEnd();
-		void			ParseConst();
 		void			ParseLabel();
 		void			ParseEventdef();
 		void			ParseFuncdef();

mercurial