changeset 685:c5fd3b7bfcab

Added 'pure' keyword.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 21 Jan 2008 19:07:23 +0100
parents 10b314bf37e3
children e8c09d13f2a5
files trunk/src/dil/lexer/Keywords.d trunk/src/dil/lexer/TokensEnum.d
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/lexer/Keywords.d	Mon Jan 21 18:40:55 2008 +0100
+++ b/trunk/src/dil/lexer/Keywords.d	Mon Jan 21 19:07:23 2008 +0100
@@ -76,6 +76,7 @@
   {"private", TOK.Private},
   {"protected", TOK.Protected},
   {"public", TOK.Public},
+  {"pure", TOK.Pure}, // D2.0
   {"real", TOK.Real},
   {"ref", TOK.Ref},
   {"return", TOK.Return},
--- a/trunk/src/dil/lexer/TokensEnum.d	Mon Jan 21 18:40:55 2008 +0100
+++ b/trunk/src/dil/lexer/TokensEnum.d	Mon Jan 21 19:07:23 2008 +0100
@@ -94,7 +94,7 @@
   If, Import, In, Inout,
   Interface, Invariant, Is, Lazy, Macro/+D2.0+/,
   Mixin, Module, New, Null, Out, Override, Package,
-  Pragma, Private, Protected, Public, Ref/+D2.0+/, Return,
+  Pragma, Private, Protected, Public, Pure/+D2.0+/, Ref, Return,
   Scope, Static, Struct, Super, Switch, Synchronized,
   Template, This, Throw, Traits/+D2.0+/, True, Try, Typedef, Typeid,
   Typeof, Union, Unittest,
@@ -198,7 +198,7 @@
   "if","import","in","inout",
   "interface","invariant","is","lazy","macro",
   "mixin","module","new","null","out","override","package",
-  "pragma","private","protected","public","ref","return",
+  "pragma","private","protected","public","pure","ref","return",
   "scope","static","struct","super","switch","synchronized",
   "template","this","throw","__traits","true","try","typedef","typeid",
   "typeof","union","unittest",